Re: [CMake] target_link_libraries of MODULE

2013-01-13 Thread Paul Chavent
On 01/12/2013 11:04 PM, Rolf Eike Beer wrote: Paul Chavent wrote: Hi. I'm working on a project basically compound of : - a core library that can be static or dynamic add_library(Foo-lib ${FOO_LIB_SOURCES}) - an executable that rely on the main library : add_executable(Foo-bin

[CMake] target_link_libraries of MODULE

2013-01-12 Thread Paul Chavent
Hi. I'm working on a project basically compound of : - a core library that can be static or dynamic add_library(Foo-lib ${FOO_LIB_SOURCES}) - an executable that rely on the main library : add_executable(Foo-bin ${FOO_BIN_SOURCES}) target_link_libraries(Foo-bin Foo-lib) - a dlopenable

Re: [CMake] target_link_libraries of MODULE

2013-01-12 Thread Rolf Eike Beer
Paul Chavent wrote: Hi. I'm working on a project basically compound of : - a core library that can be static or dynamic add_library(Foo-lib ${FOO_LIB_SOURCES}) - an executable that rely on the main library : add_executable(Foo-bin ${FOO_BIN_SOURCES}) target_link_libraries(Foo-bin