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,
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to