I'm running CL-140.1740
My CMake top level looks something like this:
In the cpp directory, my CMakeLists.txt looks something like this:
In total we have 271 add_subdirectory lines, each subdirectory has it's own CMakeLists.txt and does an add_library or add_executable.
I can select an individual subdirectory to build by selecting an item in the 'select run/debug configuration' dropdown, but I have not discovered a way to build the entire source tree. It would be nice to be able to click on a directory in the tree view on the left and have a seletion to build everything under that directory.
I'm also a bit confused regarding the 'Build output path' in the cmake settings. I expected that to be the location where cmake was run, but instead, cmake is run under a magic directory under ~/.cmake. The output path is a location where all libraries and applications are dumped after build. That seems a bit pointless... why not have that setting be the directory under which the various cmake configurations are run? That way I can more easily configure my nightly batch build without knowing the magic directory under ~/.cmake.
One more thing, as I'm typing this I started a full command line build by setting directory to ~/.clion10/system/cmake/generated/1500cc1c/1500cc1c/Debug/ and typing 'make -j20' (using distcc, so 20 jobs is fine). CLion either crashed or committed suicide while the build was ongoing. Is CLion expected to coexist peacfully with command line builds?