--- CMakeLists.txt 2018-03-21 18:38:36.831512093 +0100 +++ /tmp/CMakeLists.txt 2018-03-21 18:38:31.843512004 +0100 @@ -7,7 +7,9 @@ # Release : w/o debug symbols, w/ optimization # RelWithDebInfo : w/ debug symbols, w/ optimization # MinSizeRel : w/o debug symbols, w/ optimization, stripped binaries -#set(ROS_BUILD_TYPE RelWithDebInfo) +set(ROS_BUILD_TYPE Release) + +FIND_PACKAGE(OpenCV) rosbuild_init() @@ -23,9 +25,9 @@ #common commands for building c++ executables and libraries #rosbuild_add_library(${PROJECT_NAME} src/example.cpp) -#target_link_libraries(${PROJECT_NAME} another_library) +# target_link_libraries(faceTrack ${OpenCV_LIBS}) #rosbuild_add_boost_directories() #rosbuild_link_boost(${PROJECT_NAME} thread) rosbuild_add_executable(faceTrack src/faceTracking.cpp src/faceTracker.cpp) -#target_link_libraries(example ${PROJECT_NAME}) +target_link_libraries(faceTrack ${OpenCV_LIBS})