Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iri_base_driver
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
labrobotica
ros
iri_core
iri_base_driver
Commits
a6300ad7
Commit
a6300ad7
authored
7 years ago
by
Sergi Foix Salmerón
Browse files
Options
Downloads
Patches
Plain Diff
Adding Boost dependencies
parent
90bf84c1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+7
-2
7 additions, 2 deletions
CMakeLists.txt
with
7 additions
and
2 deletions
CMakeLists.txt
+
7
−
2
View file @
a6300ad7
...
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment