Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
laser_scan_utils
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
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
algorithms
laser_scan_utils
Merge requests
!1
Resolve "icp: develop matching tools"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "icp: develop matching tools"
23-icp-develop-matching-tools
into
master
Overview
0
Commits
31
Pipelines
0
Changes
5
Merged
Pep Martí Saumell
requested to merge
23-icp-develop-matching-tools
into
master
6 years ago
Overview
0
Commits
31
Pipelines
0
Changes
5
Expand
Closes
#23 (closed)
Edited
5 years ago
by
Joan Vallvé Navarro
0
0
Merge request reports
Viewing commit
069f1bd9
Prev
Next
Show latest version
5 files
+
137
−
8
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
069f1bd9
Added scan matching functionality
· 069f1bd9
Joaquim Casals Buñuel
authored
6 years ago
cmake_modules/Findcsm.cmake
0 → 100644
+
64
−
0
Options
FIND_PATH
(
csm_INCLUDE_DIR
NAMES algos.h
PATHS /usr/local/include/csm
)
IF
(
csm_INCLUDE_DIR
)
MESSAGE
(
"Found csm include dirs:
${
csm_INCLUDE_DIR
}
"
)
ELSE
(
csm_INCLUDE_DIR
)
MESSAGE
(
"Couldn't find csm include dirs"
)
ENDIF
(
csm_INCLUDE_DIR
)
FIND_LIBRARY
(
csm_LIBRARY
NAMES libcsm.so libcsm.dylib
PATHS /usr/local/lib
)
IF
(
csm_LIBRARY
)
MESSAGE
(
"Found csm lib:
${
csm_LIBRARY
}
"
)
ELSE
(
csm_LIBRARY
)
MESSAGE
(
"Couldn't find csm lib"
)
ENDIF
(
csm_LIBRARY
)
IF
(
csm_INCLUDE_DIR AND csm_LIBRARY
)
SET
(
csm_FOUND TRUE
)
ELSE
(
csm_INCLUDE_DIR AND csm_LIBRARY
)
set
(
csm_FOUND FALSE
)
ENDIF
(
csm_INCLUDE_DIR AND csm_LIBRARY
)
IF
(
csm_FOUND
)
IF
(
NOT csm_FIND_QUIETLY
)
MESSAGE
(
STATUS
"Found csm:
${
csm_LIBRARY
}
"
)
ENDIF
(
NOT csm_FIND_QUIETLY
)
ELSE
(
csm_FOUND
)
IF
(
csm_FIND_REQUIRED
)
MESSAGE
(
FATAL_ERROR
"Could not find csm"
)
ENDIF
(
csm_FIND_REQUIRED
)
ENDIF
(
csm_FOUND
)
macro
(
csm_report_not_found REASON_MSG
)
set
(
csm_FOUND FALSE
)
unset
(
csm_INCLUDE_DIR
)
unset
(
csm_LIBRARIES
)
# Reset the CMake module path to its state when this script was called.
set
(
CMAKE_MODULE_PATH
${
CALLERS_CMAKE_MODULE_PATH
}
)
# Note <package>_FIND_[REQUIRED/QUIETLY] variables defined by
# FindPackage() use the camelcase library name, not uppercase.
if
(
csm_FIND_QUIETLY
)
message
(
STATUS
"Failed to find csm- "
${
REASON_MSG
}
${
ARGN
}
)
else
(
csm_FIND_REQUIRED
)
message
(
FATAL_ERROR
"Failed to find csm - "
${
REASON_MSG
}
${
ARGN
}
)
else
()
# Neither QUIETLY nor REQUIRED, use SEND_ERROR which emits an error
# that prevents generation, but continues configuration.
message
(
SEND_ERROR
"Failed to find csm - "
${
REASON_MSG
}
${
ARGN
}
)
endif
()
return
()
endmacro
(
csm_report_not_found
)
if
(
NOT csm_FOUND
)
csm_report_not_found
(
"Something went wrong while setting up csm."
)
endif
(
NOT csm_FOUND
)
# Set the include directories for csm (itself).
set
(
csm_FOUND TRUE
)
\ No newline at end of file
Loading