Skip to content
Snippets Groups Projects
Commit a6300ad7 authored by Sergi Foix Salmerón's avatar Sergi Foix Salmerón
Browse files

Adding Boost dependencies

parent 90bf84c1
No related branches found
No related tags found
No related merge requests found
......@@ -3,13 +3,16 @@ project(iri_base_driver)
set(CMAKE_BUILD_TYPE "DEBUG")
## Add support for C++11, supported in ROS Kinetic and newer
# add_definitions(-std=c++11)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS roscpp dynamic_reconfigure message_generation)
## System dependencies are found with CMake's conventions
# find_package(Boost REQUIRED COMPONENTS system)
find_package(Boost REQUIRED COMPONENTS system thread)
## Uncomment this if the package has a setup.py. This macro ensures
## modules and global scripts declared therein get installed
......@@ -79,7 +82,7 @@ catkin_package(
INCLUDE_DIRS include
LIBRARIES ${PROJECT_NAME}
CATKIN_DEPENDS roscpp dynamic_reconfigure message_runtime
# DEPENDS system_lib
DEPENDS Boost
)
###########
......@@ -91,6 +94,7 @@ catkin_package(
# include_directories(include)
INCLUDE_DIRECTORIES(include)
include_directories(${catkin_INCLUDE_DIRS})
include_directories(${Boost_INCLUDE_DIRS})
## Declare a cpp library
# add_library(foo
......@@ -98,6 +102,7 @@ include_directories(${catkin_INCLUDE_DIRS})
# )
add_library(${PROJECT_NAME} src/iri_base_driver.cpp)
target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES})
target_link_libraries(${PROJECT_NAME} ${Boost_LIBRARIES})
## Declare a cpp executable
# add_executable(foo_node src/foo_node.cpp)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment