Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
labrobotica
ros
iri_core
iri_ros_tools
Commits
5015357c
Commit
5015357c
authored
Jun 20, 2018
by
Sergi Hernandez
Browse files
Added the roscpp dependency.
parent
591c4330
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
5015357c
...
...
@@ -4,7 +4,7 @@ project(iri_ros_tools)
## 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
)
find_package
(
catkin REQUIRED
COMPONENTS roscpp
)
## System dependencies are found with CMake's conventions
# find_package(Boost REQUIRED COMPONENTS system)
...
...
@@ -88,16 +88,19 @@ catkin_package(
## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories
(
include
)
include_directories
(
${
catkin_INCLUDE_DIRS
}
)
## Declare a cpp library
# add_library(iri_ros_tool
# src/${PROJECT_NAME}/iri_ros_tool.cpp
# )
add_library
(
${
PROJECT_NAME
}
src/timeout.cpp src/watchdog.cpp
)
target_link_libraries
(
${
PROJECT_NAME
}
${
catkin_LIBRARIES
}
)
add_library
(
modules include/
${
PROJECT_NAME
}
/module_common.h include/
${
PROJECT_NAME
}
/module.h include/
${
PROJECT_NAME
}
/module_service.h include/
${
PROJECT_NAME
}
/module_action.h include/
${
PROJECT_NAME
}
/module_exceptions.h include/
${
PROJECT_NAME
}
/module_dyn_reconf.h
)
set_target_properties
(
modules PROPERTIES LINKER_LANGUAGE CXX
)
target_link_libraries
(
modules
${
PROJECT_NAME
}
)
target_link_libraries
(
modules
${
catkin_LIBRARIES
}
)
## Declare a cpp executable
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment