[CMake] shared + static object creation in one CMakeLists.txt
Steffen Wendzel
cdp_xe at gmx.net
Mon Jan 21 18:30:50 EST 2008
hi,
I'm new on cmake and tried it for the 2nd time this day. I want to
build both: a static and a shared object from my code and tried it
this way:
ADD_LIBRARY(cmle SHARED
src/libcmle.C
src/libcmle_int.C
)
ADD_LIBRARY(cmle STATIC
src/libcmle.C
src/libcmle_int.C
)
But this didn't work, only the shared object was created. What
went wrong?
regards
Steffen
More information about the CMake
mailing list