[CMake] library dependcies and add_library(OBJECT)

Stephen Kelly steveire at gmail.com
Mon Nov 17 16:26:25 EST 2014


avorop at mail.ru wrote:

> What should I add
> to B/CMakeLists.txt to successfully build my executable?

You might be able to add an INTERFACE library and populate its 
INTERFACE_SOURCES using the target_sources command:

 http://www.cmake.org/cmake/help/v3.1/command/target_sources.html
 
 http://www.cmake.org/cmake/help/v3.1/manual/cmake-buildsystem.7.html#interface-libraries

Thanks,

Steve.




More information about the CMake mailing list