Re: [CMake] Fwd: Build shared and static in one build

2012-05-18 Thread Eric Noulard
2012/5/18 Totte Karlsson : >> >> set(LIBSRC blah.c bouh.c) >> >> add_library(MyLib SHARED ${LIBSRC}) >> >> add_library(MyLib-static STATIC ${LIBSRC}) >> set_target_properties(MyLibStatic PROPERTIES OUTPUT_NAME MyLib) >> >> should work > > > That works great. > > Not sure what the line >> set_target

Re: [CMake] Fwd: Build shared and static in one build

2012-05-18 Thread Totte Karlsson
set(LIBSRC blah.c bouh.c) add_library(MyLib SHARED ${LIBSRC}) add_library(MyLib-static STATIC ${LIBSRC}) set_target_properties(MyLibStatic PROPERTIES OUTPUT_NAME MyLib) should work That works great. Not sure what the line > set_target_properties(MyLibStatic PROPERTIES OUTPUT_NAME MyLib) Is

[CMake] Fwd: Build shared and static in one build

2012-05-17 Thread Eric Noulard
-- Forwarded message -- From: Eric Noulard Date: 2012/5/18 Subject: Re: [CMake] Build shared and static in one build To: to...@dunescientific.com 2012/5/18 Totte Karlsson : > Hi, > > How does one gey a setup where both a static and shared version of a library > is built in 'one g