Recently bored to play the next clion this IDE, the way to learn the next cmake how to use. Say Clion's cmake support is not particularly intact, and command-line mode There are differences, there are several problems:
1:cmake's compiled directory cannot be specified, but it is a random directory set by the IDE itself, which is not used in the setting settings.
"C:\Program Files (x86) \jetbrains\clion 140.2310.6\bin\cmake\bin\cmake.exe"--build C:\Users\XXX\.clion10\system\ Cmake\generated\a1a7dd78\a1a7dd78\debug--target Main---J 4
2: Master CMakeLists.txt must add a target to compile. Add_custom_target can solve this problem.
Also a very important question. You cannot create a new CPP file when you create a new file. This is really a C + + development tool, so retarded bugs are not found
The source of the project is here, the process of learning clion is a process of learning CMake
Https://git.oschina.net/1987times/ds.git
Use of Clions