How can I know in my CMakeLists.txt if I'm generating a Visual Studio solution or a Makefile?
I need to add external projects to the solution like this:
INCLUDE_EXTERNAL_MSPROJECT(cs-tests ${CMAKE_CURRENT_SOURCE_DIR}/cstests/cstests.csproj)
But I only want to do it when calling
cmake .. -DCMAKE_BUILD_TYPE=Debug -G "Visual Studio 12 2013"
not when I call:
cmake -G "NMake Makefiles" ..