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
Container Registry
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software
ArmarX
RobotAPI
Merge requests
!280
SickLaserUnit: using cmake target instead of custom mechanism
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
SickLaserUnit: using cmake target instead of custom mechanism
feature/sick_scan_fork
into
master
Overview
0
Commits
2
Pipelines
0
Changes
2
Merged
Fabian Reister
requested to merge
feature/sick_scan_fork
into
master
2 years ago
Overview
0
Commits
2
Pipelines
0
Changes
2
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
bce595ed
2 commits,
2 years ago
2 files
+
1
−
64
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
etc/cmake/Findsick_scan_base.cmake deleted
100644 → 0
+
0
−
61
Options
# - 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
)
if
(
DEFINED ENV{sick_scan_base_DIR}
)
if
(
NOT DEFINED sick_scan_base_DIR
)
set
(
sick_scan_base_DIR $ENV{sick_scan_base_DIR}
)
endif
()
endif
()
#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/
#/opt/ros/melodic/include/
#/opt/ros/melodic/include/sick_scan/
)
#find_path(sick_scan_base_INCLUDE_DIR_7 NAMES sick_scan_common.h PATHS ${HEADER_SEARCH_PATHS} NO_DEFAULT_PATH)
#if(sick_scan_base_INCLUDE_DIR_7)
# set(sick_scan_base_INCLUDE_DIRS ${sick_scan_base_INCLUDE_DIR_7})
#endif()
#find_library(sick_scan_base_LIBRARIES NAMES libsick_scan_lib.so PATHS /opt/ros/melodic/lib/ NO_DEFAULT_PATH)
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_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
)
find_path
(
sick_scan_base_INCLUDE_DIR_6 NAMES sick_scan/rosconsole_simu.hpp 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_5 AND sick_scan_base_INCLUDE_DIR_6
)
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
}
${
sick_scan_base_INCLUDE_DIR_6
}
)
endif
()
message
(
STATUS
"sick_scan_base_INCLUDE_DIRS:
${
sick_scan_base_INCLUDE_DIRS
}
"
)
find_package_handle_standard_args
(
sick_scan_base DEFAULT_MSG sick_scan_base_INCLUDE_DIRS sick_scan_base_LIBRARIES
)
mark_as_advanced
(
sick_scan_base_INCLUDE_DIRS sick_scan_base_LIBRARIES
)
Loading