[CMake] library dependcies and add_library(OBJECT)
Andrey Voropaev
avorop at mail.ru
Tue Nov 18 06:42:14 EST 2014
On Mon, Nov 17, 2014 at 10:26 PM, Stephen Kelly <steveire at gmail.com> wrote:
> 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
Unfortunately, my version of cmake is 2.8.12 so I don't have this
option. I guess add_library(OBJECT) is useless
in this situation. I've returned to using "normal" add_library that
creates static library.
Thank you for help.
More information about the CMake
mailing list