You could do the following:

ADD_LIBRARY(intermediate STATIC a.cpp)

ADD_LIBRARY(foo b.cpp)
TARGET_LINK_LIBRARIES(foo intermediate)

ADD_LIBRARY(bar c.cpp)
TARGET_LINK_LIBRARIES(bar intermediate)

Denis


> One of the users I support complained about the following:
> 
> add_library(foo a.c b.c)
> add_library(bar a.c c.c)
> 



      
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to