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
7cd96c0d
Commit
7cd96c0d
authored
5 years ago
by
Sergi Foix Salmerón
Browse files
Options
Downloads
Patches
Plain Diff
comment DEBUG cmake build and re-structure
parent
98606620
No related branches found
No related tags found
1 merge request
!2
Kinetic format 2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+16
-7
16 additions, 7 deletions
CMakeLists.txt
with
16 additions
and
7 deletions
CMakeLists.txt
+
16
−
7
View file @
7cd96c0d
cmake_minimum_required
(
VERSION 2.8.3
)
cmake_minimum_required
(
VERSION 2.8.3
)
project
(
iri_base_driver
)
project
(
iri_base_driver
)
set
(
CMAKE_BUILD_TYPE
"DEBUG"
)
#
set(CMAKE_BUILD_TYPE "DEBUG")
## Add support for C++11, supported in ROS Kinetic and newer
## Add support for C++11, supported in ROS Kinetic and newer
# add_definitions(-std=c++11)
# add_definitions(-std=c++11)
...
@@ -9,9 +9,14 @@ set(CMAKE_BUILD_TYPE "DEBUG")
...
@@ -9,9 +9,14 @@ set(CMAKE_BUILD_TYPE "DEBUG")
## Find catkin macros and libraries
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
## is used, also find other catkin packages
find_package
(
catkin REQUIRED COMPONENTS roscpp dynamic_reconfigure message_generation
)
find_package
(
catkin REQUIRED COMPONENTS
roscpp
dynamic_reconfigure
message_generation
)
## System dependencies are found with CMake's conventions
## System dependencies are found with CMake's conventions
# find_package(Boost REQUIRED COMPONENTS system)
find_package
(
Boost REQUIRED COMPONENTS system thread
)
find_package
(
Boost REQUIRED COMPONENTS system thread
)
## Uncomment this if the package has a setup.py. This macro ensures
## Uncomment this if the package has a setup.py. This macro ensures
...
@@ -92,17 +97,21 @@ catkin_package(
...
@@ -92,17 +97,21 @@ catkin_package(
## Specify additional locations of header files
## Specify additional locations of header files
## Your package locations should be listed before other locations
## Your package locations should be listed before other locations
# include_directories(include)
# include_directories(include)
INCLUDE_DIRECTORIES
(
include
)
include_directories
(
include_directories
(
${
catkin_INCLUDE_DIRS
}
)
include
include_directories
(
${
Boost_INCLUDE_DIRS
}
)
${
catkin_INCLUDE_DIRS
}
${
Boost_INCLUDE_DIRS
}
)
## Declare a cpp library
## Declare a cpp library
# add_library(foo
# add_library(foo
# src/${PROJECT_NAME}/foo.cpp
# src/${PROJECT_NAME}/foo.cpp
# )
# )
add_library
(
${
PROJECT_NAME
}
src/iri_base_driver.cpp
)
add_library
(
${
PROJECT_NAME
}
src/iri_base_driver.cpp
)
target_link_libraries
(
${
PROJECT_NAME
}
${
catkin_LIBRARIES
}
)
target_link_libraries
(
${
PROJECT_NAME
}
target_link_libraries
(
${
PROJECT_NAME
}
${
Boost_LIBRARIES
}
)
${
catkin_LIBRARIES
}
${
Boost_LIBRARIES
}
)
## Declare a cpp executable
## Declare a cpp executable
# add_executable(foo_node src/foo_node.cpp)
# 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