Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RobotAPI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lennard Hofmann
RobotAPI
Commits
35162701
Commit
35162701
authored
3 years ago
by
Johann Mantel
Browse files
Options
Downloads
Patches
Plain Diff
add CMake Find script for sick_scan_base
parent
ca18b0b9
Branches
fix/obstacle_awareness
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
etc/cmake/Findsick_scan_base.cmake
+46
-0
46 additions, 0 deletions
etc/cmake/Findsick_scan_base.cmake
with
46 additions
and
0 deletions
etc/cmake/Findsick_scan_base.cmake
0 → 100644
+
46
−
0
View file @
35162701
# - Try to find sick_scan_base
# This module defines the following variables:
# sick_scan_base_FOUND : 1 if sick_scan_base was found, 0 otherwise
# sick_scan_base_INCLUDE_DIRS: directory where the headers can be found
include
(
FindPackageHandleStandardArgs
)
message
(
STATUS
${
sick_scan_base_DIR
}
)
#if(NOT "$ENV{sick_scan_base_DIR}" EQUAL "")
# set(sick_scan_base_DIR $ENV{sick_scan_base_DIR} CACHE PATH "Path to sick_scan_base" FORCE)
#endif()
set
(
HEADER_SEARCH_PATHS
${
sick_scan_base_DIR
}
/include/
${
sick_scan_base_DIR
}
/include/sick_scan/
${
sick_scan_base_DIR
}
/include/tinyxml/
${
sick_scan_base_DIR
}
/roswrap/src/include/
${
sick_scan_base_DIR
}
/roswrap/src/rossimu/kinetic/include/
${
sick_scan_base_DIR
}
/roswrap/src/cfgsimu/
ENV CPATH
/usr/include/
)
#find_library(sick_scan_base_LIBRARY Names sick_scan_base2 PATHS /usr/lib PATH_SUFFIXES lib )
find_path
(
sick_scan_base_INCLUDE_DIR_0 NAMES sick_scan/sick_scan_common_tcp.h PATHS
${
HEADER_SEARCH_PATHS
}
NO_DEFAULT_PATH
)
find_path
(
sick_scan_base_INCLUDE_DIR_1 NAMES sick_generic_laser.h PATHS
${
HEADER_SEARCH_PATHS
}
NO_DEFAULT_PATH
)
find_path
(
sick_scan_base_INCLUDE_DIR_2 NAMES tinystr.h PATHS
${
HEADER_SEARCH_PATHS
}
NO_DEFAULT_PATH
)
find_path
(
sick_scan_base_INCLUDE_DIR_3 NAMES sick_scan/SickScanConfig.h PATHS
${
HEADER_SEARCH_PATHS
}
NO_DEFAULT_PATH
)
find_path
(
sick_scan_base_INCLUDE_DIR_4 NAMES dynamic_reconfigure/config_tools.h PATHS
${
HEADER_SEARCH_PATHS
}
NO_DEFAULT_PATH
)
find_path
(
sick_scan_base_INCLUDE_DIR_5 NAMES sick_scan/SickScanConfig.h PATHS
${
HEADER_SEARCH_PATHS
}
NO_DEFAULT_PATH
)
if
(
sick_scan_base_INCLUDE_DIR_0 AND sick_scan_base_INCLUDE_DIR_1 AND sick_scan_base_INCLUDE_DIR_2 AND sick_scan_base_INCLUDE_DIR_3 AND sick_scan_base_INCLUDE_DIR_4 AND sick_scan_base_INCLUDE_DIR_4
)
set
(
sick_scan_base_INCLUDE_DIRS
${
sick_scan_base_INCLUDE_DIR_0
}
${
sick_scan_base_INCLUDE_DIR_1
}
${
sick_scan_base_INCLUDE_DIR_2
}
${
sick_scan_base_INCLUDE_DIR_3
}
${
sick_scan_base_INCLUDE_DIR_4
}
${
sick_scan_base_INCLUDE_DIR_5
}
)
endif
()
message
(
STATUS
"sick_scan_base_INCLUDE_DIRS:
${
sick_scan_base_INCLUDE_DIRS
}
"
)
find_library
(
sick_scan_base_LIBRARIES NAMES libsick_scan_generic.so PATHS
${
sick_scan_base_DIR
}
/build NO_DEFAULT_PATH
)
message
(
STATUS
"sick_scan_base_LIBRARIES:
${
sick_scan_base_LIBRARIES
}
"
)
find_package_handle_standard_args
(
sick_scan_base DEFAULT_MSG sick_scan_base_INCLUDE_DIRS
)
mark_as_advanced
(
sick_scan_base_INCLUDE_DIRS
)
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