[CMake] Debug/Release configurations for codeblocks ?
Carlos
carlos at sgzdev.net
Thu Jul 22 11:53:18 EDT 2010
Hello,
It seems the debug/release default configuration are only built for VStudio
suites.
Anyway I am trying to simulated such for the codeblocks IDE, this is how I
did my CMakeLists.txt :
project( myapp )
add_executable( Release WIN32 ${my_src_files} )
target_link_libraries( Release ${my_libs} )
set_target_properties( Release PROPERTIES OUTPUT_NAME myappname )
add_executable( Debug ${my_src_files} )
target_link_libraries( Debug ${my_libs_dbg} )
set_source_files_properties( Debug PROPERTIES COMPILE_DEFINITIONS .... etc
.... )
set_target_properties( Debug PROPERTIES OUTPUT_NAME myappname_dbg .... etc
.... )
Actually this works pretty fine but :
Is that the right way to simulate VS build configurations ?
Is there any chance this conflicts with the VS generator ?
Other misc question :
What are the xxx/fast configurations in codeblocks ?
Regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100722/7f1fb7cb/attachment.htm>
More information about the CMake
mailing list