[CMake] Header only targets, solution folders and shared settings?
Kenny Erleben
kenny at diku.dk
Mon May 21 04:27:14 EDT 2007
Eric Noulard skrev:
> 2007/5/20, Kenny Erleben <kenny at diku.dk>:
>
>> iii) How to make several executables share the same compiler- and
>> linker- flags?
>
> you may define a CMake variable
> SET(MYCFLAGS "jkdlfjlj")
> SET(MYLDFLAGS "ljjl")
>
> then you may use
> SET_TARGET_PROPERTIES(target1 target2
> PROPERTIES
> COMPILE_FLAGS ${MYCFLAGS}
> LINK_FLAGS ${MYLDFLAGS})
How can I use different flags for debug and optimized versions?
/Kenny
More information about the CMake
mailing list