From 6e82d8bd5649d1dee5af2e4c6945020c00d83d9c Mon Sep 17 00:00:00 2001 From: Jonathan Bohren Date: Tue, 20 May 2014 17:21:06 -0400 Subject: [PATCH] Adding libraries to gscam target Fixes #13, now builds on stricter linkers --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 285b38c..6938ce4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,6 +19,9 @@ if(USE_ROSBUILD) include_directories(${GLIB_INCLUDE_DIRS} ${GST_APP_INCLUDE_DIRS}) rosbuild_add_library(gscam src/gscam.cpp) + target_link_libraries(gscam + ${GSTREAMER_LIBRARIES} + ${GST_APP_LIBRARIES}) rosbuild_add_executable(gscam_node src/gscam_node.cpp) target_link_libraries(gscam_node gscam @@ -53,6 +56,10 @@ else() ${GST_APP_INCLUDE_DIRS}) add_library(gscam src/gscam.cpp) + target_link_libraries(gscam + ${catkin_LIBRARIES} + ${GSTREAMER_LIBRARIES} + ${GST_APP_LIBRARIES}) add_executable(gscam_node src/gscam_node.cpp) target_link_libraries(gscam_node gscam