Re: [CMake] Changing the build-mode

2010-01-29 Thread Micha Renner
Am Donnerstag, den 28.01.2010, 11:40 +0100 schrieb Michael Wild: > But you'll certainly want to have a look at the _POSTFIX target > property or the _POSTFIX variable for setting a postfix (such as "d") > depending on the configuration. > > Michael > Yes! This tip was very helpful and solves

Re: [CMake] Changing the build-mode

2010-01-28 Thread Michael Wild
On 28. Jan, 2010, at 11:19 , Micha Renner wrote: > There is a library, which has the suffix d, if it is compiled in > Debug-Mode > > ADD_LIBRARY(${_targetname} SHARED ${_src} ${_imIncludeFiles}) > SET_TARGET_PROPERTIES(${_targetname} PROPERTIES DEBUG_OUTPUT_NAME > ${_targetname}d) > INSTALL(TARG

[CMake] Changing the build-mode

2010-01-28 Thread Micha Renner
There is a library, which has the suffix d, if it is compiled in Debug-Mode ADD_LIBRARY(${_targetname} SHARED ${_src} ${_imIncludeFiles}) SET_TARGET_PROPERTIES(${_targetname} PROPERTIES DEBUG_OUTPUT_NAME ${_targetname}d) INSTALL(TARGETS ${_targetname} EXPORT SLibName RUNTIME DESTINATION d