I am pretty new to C++
When I code in Java I get to use the Intellij IDEA environment and I would really get a lot out of using their C++ IDE called CLion.
But I have no idea how to set it up. Is anyone using CLion and iPlug2?
I am pretty new to C++
When I code in Java I get to use the Intellij IDEA environment and I would really get a lot out of using their C++ IDE called CLion.
But I have no idea how to set it up. Is anyone using CLion and iPlug2?
Hi Cristian,
We may add cmake support at some stage, which would mean CLion would work with iPlug2, however currently iPlug2 is set up to work with carefully configured (& very complex) xcode/visual studio projects that you duplicate from one of the examples. You will make things very hard for yourself as a C++ newcomer if you are determined to use CLion with iPlug2.
Hi Oli, thanks, I thought as much after trying a bit…
+1 here
I am using CLion for iPlug2, but on Mac so it’s clunky. I have to switch back to Xcode for building and running.
I imported all my iPlug2 project files using “New CMake Project from Sources”, and then added header files to CMakeLists.txt as needed. Far from the best way to do this, but looks like this:
cmake_minimum_required(VERSION 3.10)
project(ChipSmasher)
set(CMAKE_CXX_STANDARD 14)
include_directories(.)
include_directories(NesSndEmu)
include_directories(NesSndEmu/nes_apu)
include_directories(resources)
include_directories(../../IPlug)
include_directories(../../IPlug/APP)
include_directories(../../IPlug/Extras)
include_directories(../../IPlug/Extras/Synth)
include_directories(../../IGraphics)
include_directories(../../IGraphics/Controls)
include_directories(../../WDL)
add_definitions(-DIPLUG_EDITOR -DIPLUG_DSP -DAPP_API)
add_executable(ChipSmasher
NesSndEmu/nes_apu/apu_snapshot.cpp
NesSndEmu/nes_apu/apu_snapshot.h
...
)