Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wolf_ros_laser
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_laser
Commits
62b42380
Commit
62b42380
authored
3 years ago
by
Mederic Fourmy
Browse files
Options
Downloads
Patches
Plain Diff
[skip-ci] it compiles with non root installation!
parent
8bad7c9f
No related branches found
No related tags found
2 merge requests
!6
After cmake and const refactor
,
!5
Resolve "Adapt to core cmake refactor"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+16
-14
16 additions, 14 deletions
CMakeLists.txt
with
16 additions
and
14 deletions
CMakeLists.txt
+
16
−
14
View file @
62b42380
...
...
@@ -22,6 +22,9 @@ find_package(catkin REQUIRED COMPONENTS
find_package
(
wolfcore REQUIRED
)
find_package
(
wolflaser REQUIRED
)
find_package
(
falkolib QUIET
)
find_package
(
PkgConfig
)
pkg_check_modules
(
csm QUIET csm
)
link_directories
(
${
csm_LIBRARY_DIRS
}
)
# produces the XXXConfig.cmake file among other things
catkin_package
(
...
...
@@ -35,11 +38,13 @@ catkin_package(
## Your package locations should be listed before other locations
include_directories
(
include
${
wolflaser_INCLUDE_DIRS
}
# ${laser_scan_utils_INCLUDE_DIRS}
${
catkin_INCLUDE_DIRS
}
)
# Bad -> should be removed eventually
INCLUDE_DIRECTORIES
(
"
${
falkolib_INCLUDE_DIRS
}
"
)
INCLUDE_DIRECTORIES
(
"
${
csm_INCLUDE_DIRS
}
"
)
add_library
(
publisher_
${
PROJECT_NAME
}
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/publisher_laser_map.cpp
)
...
...
@@ -47,19 +52,16 @@ add_library(subscriber_${PROJECT_NAME}
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/subscriber_laser2d.cpp
)
# target_sources(publisher_${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src/publisher_laser_map.cpp)
# target_sources(subscriber_${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src/subscriber_laser2d.cpp)
# if (falkolib_FOUND)
# message("Found Falkolib. Compiling publisher_falko.")
# target_sources(publisher_${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src/publisher_falko.cpp)
# endif()
if
(
falkolib_FOUND
)
message
(
"Found Falkolib. Compiling publisher_falko."
)
target_sources
(
publisher_
${
PROJECT_NAME
}
PUBLIC
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/publisher_falko.cpp
)
endif
()
#
find_file(ICP wolflaser_INCLUDE_DIRS laser/processor/processor_odom_icp.h)
#
if (NOT ICP_NOTFOUND)
#
message("Found 'processor_odom_icp.h'. Compiling publisher_odom_icp.")
#
target_sources(publisher_${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src/publisher_odom_icp.cpp)
#
endif ()
find_file
(
ICP wolflaser_INCLUDE_DIRS laser/processor/processor_odom_icp.h
)
if
(
NOT ICP_NOTFOUND
)
message
(
"Found 'processor_odom_icp.h'. Compiling publisher_odom_icp."
)
target_sources
(
publisher_
${
PROJECT_NAME
}
PUBLIC
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/publisher_odom_icp.cpp
)
endif
()
## Specify libraries to link a library or executable target against
target_link_libraries
(
subscriber_
${
PROJECT_NAME
}
...
...
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