Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wolf_ros_imu
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
mobile_robotics
wolf_projects
wolf_ros
wolf_ros_imu
Commits
c0bf70b5
Commit
c0bf70b5
authored
2 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Fix CMAKE_CXX_FLAGS and link catkin library
parent
927a16ea
No related branches found
No related tags found
1 merge request
!6
Devel
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+3
-1
3 additions, 1 deletion
CMakeLists.txt
with
3 additions
and
1 deletion
CMakeLists.txt
+
3
−
1
View file @
c0bf70b5
...
@@ -4,7 +4,7 @@ project(wolf_ros_imu)
...
@@ -4,7 +4,7 @@ project(wolf_ros_imu)
## Compile as C++14
## Compile as C++14
add_compile_options
(
-std=c++14
)
add_compile_options
(
-std=c++14
)
# -fPIC and -rdynamic ensure unique singleton instance across shared libraries (for factories) see: https://stackoverflow.com/a/8626922
# -fPIC and -rdynamic ensure unique singleton instance across shared libraries (for factories) see: https://stackoverflow.com/a/8626922
SET
(
CMAKE_CXX_FLAGS
"-fPIC -rdynamic"
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fPIC -rdynamic"
)
## 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)
...
@@ -52,11 +52,13 @@ add_library(publisher_${PROJECT_NAME}
...
@@ -52,11 +52,13 @@ add_library(publisher_${PROJECT_NAME}
target_link_libraries
(
subscriber_
${
PROJECT_NAME
}
target_link_libraries
(
subscriber_
${
PROJECT_NAME
}
wolfcore
wolfcore
wolfimu
wolfimu
${
catkin_LIBRARIES
}
${
sensor_msgs_LIBRARIES
}
${
sensor_msgs_LIBRARIES
}
)
)
target_link_libraries
(
publisher_
${
PROJECT_NAME
}
target_link_libraries
(
publisher_
${
PROJECT_NAME
}
wolfcore
wolfcore
wolfimu
wolfimu
${
catkin_LIBRARIES
}
${
sensor_msgs_LIBRARIES
}
${
sensor_msgs_LIBRARIES
}
)
)
\ No newline at end of file
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