I use cmake to create the VS project for building ITK. Until now I’ve been only building the Release libraries, now I want to build and use the Debug libraries as well. It took me a while to realise that when I Build INSTALL, whether Release or Debug the libraries are copied to the specified install directory, with the same names. In other words although the build directory has separate lib\Release and lib\Debug directories containing the two sets of libraries, there is only one install lib directory. Is there a way to get cmake to set up the VS project in a way that will make Build INSTALL create separate Release and Debug lib directories? I am using the cmake GUI.
My ITK build directory is: D:\ITK-VS11-x64-build
the install directory is C:\ITK
Normally I set the environment variable ITK-DIR = C:\ITK.
If I set ITK-DIR = D:\ITK-VS11-x64-build the right libraries are found by VS when I build a program that uses ITK, depending on which build I select. This enables building of either Release or Debug versions of my program, but seems to make the ITK install directory pointless. Am I missing something?
I have a cmake question. I use cmake to create the VS project to build my program, with these lines in CMakeLists.txt:
“ITK not found. Please set ITK_DIR.”)
How can I tell cmake to use the ITK build directory, without setting ITK_DIR?