[CMake] how to link with a system library ?
Steven Samuel Cole
steven.samuel.cole at gmail.com
Sun Sep 21 05:23:49 EDT 2008
I would like to link a system library into an executable, GTK in this
case. What I'm trying to do is
include(FindGTK)
target_link_libraries(myexec $GTK_LIBRARIES)
add_executable (myexec sources)
Result:
CMake Error: Attempt to add link library "GTK_LIBRARIES" to target
"myexec" which is not built by this project.
What am I doing wrong ?
Kind regards,
Steve
More information about the CMake
mailing list