I'm trying to write a CMakeLists.txt
file so that it generates a Visual Studio solution. I have several external libraries, and some libraries have different import libraries for Debug & Release mode.
In Visual Studio, I'd manually select each mode, and change the name of the library and the required directory. I think I need to play with target_link_libraries
and set(CMAKE_BUILD_TYPE Release)
but I haven't had any luck so far.