Remembering Cmake syntax, including generating project files for the Eclipse IDE25 Jun 2022
I always forget the cmake syntax if it is anything below
cmake ../src. Here are some common combinations, I usually create an Eclipse project with cmake and then import to the Eclipse IDE.
cmake -DCMAKE_BUILD_TYPE=Release ../src(Release configuration)
cmake -DCMAKE_BUILD_TYPE=Debug ../src(Debug configuration)
cmake -G"Eclipse CDT4 - Unix Makefiles" -DCMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT=TRUE ../src/(Create an Eclipse project to import – it will be in the build folder)