[CMake] target_link_libraries external library
kitts
kitts.mailinglists at gmail.com
Fri Sep 21 22:36:50 EDT 2007
On Saturday 22 Sep 2007 1:45:26 am Juan Sanchez wrote:
> How do you add an externally library for linking into a target? I am
> getting something like this from TARGET_LINK_LIBRARIES?
>
> CMake Error: Attempt to add link library "/bar/linux-x86/opt/foo.a" to
> target "waterlooApps" which is not built by this project.
waterlooApps must be a declared target before calling TARGET_LINK_LIBRARIES()
ADD_EXECUTABLE(waterlooApps ${waterlooApps_SRCS})
TARGET_LINK_LIBRARIES(waterlooApps foo)
--
Cheers!
kitts
More information about the CMake
mailing list