From afddde32825168337222375dadffcec2a04cf410 Mon Sep 17 00:00:00 2001 From: Pyo Date: Fri, 30 Mar 2018 22:22:47 +0900 Subject: [PATCH] refacoring to release --- ball_detector/CMakeLists.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/ball_detector/CMakeLists.txt b/ball_detector/CMakeLists.txt index 647cfdd..052a5ca 100644 --- a/ball_detector/CMakeLists.txt +++ b/ball_detector/CMakeLists.txt @@ -19,6 +19,28 @@ find_package(catkin REQUIRED COMPONENTS message_generation ) +find_package(Boost REQUIRED COMPONENTS thread) +find_package(OpenCV REQUIRED) + +## Resolve system dependency on yaml-cpp, which apparently does not +## provide a CMake find_package() module. +## Insert your header file compatible specified path like '#include ' +find_package(PkgConfig REQUIRED) +pkg_check_modules(YAML_CPP REQUIRED yaml-cpp) +find_path(YAML_CPP_INCLUDE_DIR + NAMES yaml_cpp.h + PATHS ${YAML_CPP_INCLUDE_DIRS} +) +find_library(YAML_CPP_LIBRARY + NAMES YAML_CPP + PATHS ${YAML_CPP_LIBRARY_DIRS} +) +link_directories(${YAML_CPP_LIBRARY_DIRS}) + +if(NOT ${YAML_CPP_VERSION} VERSION_LESS "0.5") +add_definitions(-DHAVE_NEW_YAMLCPP) +endif(NOT ${YAML_CPP_VERSION} VERSION_LESS "0.5") + ################################################################################ # Setup for python modules and scripts ################################################################################