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
Commits
184734a1
Commit
184734a1
authored
3 years ago
by
Mederic Fourmy
Browse files
Options
Downloads
Patches
Plain Diff
Compiling a XXXConfig.cmake.in file
parent
74665f50
No related branches found
No related tags found
2 merge requests
!8
Cmake refactoring was merged to main, merge back to devel also
,
!7
Resolve "Adapt to core CMakeLists.txt refactor"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+31
-8
31 additions, 8 deletions
CMakeLists.txt
cmake_modules/laser_scan_utilsConfig.cmake.in
+9
-0
9 additions, 0 deletions
cmake_modules/laser_scan_utilsConfig.cmake.in
with
40 additions
and
8 deletions
CMakeLists.txt
+
31
−
8
View file @
184734a1
...
...
@@ -23,16 +23,8 @@ SET(CMAKE_CXX_FLAGS_RELEASE "-O3 -D_REENTRANT")
#find dependencies
FIND_PACKAGE
(
Eigen3 3.3 REQUIRED
)
FIND_PACKAGE
(
falkolib QUIET
)
find_package
(
PkgConfig
)
pkg_check_modules
(
csm QUIET csm
)
message
(
WARNING
${
csm_FOUND
}
)
message
(
WARNING csm_LIBRARIES:
${
csm_LIBRARIES
}
)
message
(
WARNING csm_LIBRARY:
${
csm_LIBRARY
}
)
message
(
WARNING csm_LINK_LIBRARIES:
${
csm_LINK_LIBRARIES
}
)
message
(
WARNING csm_LIBRARY_DIRS:
${
csm_LIBRARY_DIRS
}
)
message
(
WARNING csm_INCLUDE_DIRS:
${
csm_INCLUDE_DIRS
}
)
message
(
WARNING csm_INCLUDE_DIR:
${
csm_INCLUDE_DIR
}
)
# NOPE!
#Build tests
...
...
@@ -61,6 +53,37 @@ endif()
ADD_SUBDIRECTORY
(
src
)
#install library
#=============================================================
INSTALL
(
TARGETS
${
PROJECT_NAME
}
EXPORT
${
PROJECT_NAME
}
Targets
RUNTIME DESTINATION bin
LIBRARY DESTINATION
${
LIB_INSTALL_DIR
}
ARCHIVE DESTINATION
${
LIB_INSTALL_DIR
}
)
install
(
EXPORT
${
PROJECT_NAME
}
Targets DESTINATION lib/
${
PROJECT_NAME
}
/cmake
)
# Configure the package installation
include
(
CMakePackageConfigHelpers
)
configure_package_config_file
(
${
CMAKE_SOURCE_DIR
}
/cmake_modules/
${
PROJECT_NAME
}
Config.cmake.in
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
PROJECT_NAME
}
Config.cmake
INSTALL_DESTINATION
${
LIB_INSTALL_DIR
}
/
${
PROJECT_NAME
}
/cmake
PATH_VARS INCLUDE_INSTALL_DIR LIB_INSTALL_DIR
)
install
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
PROJECT_NAME
}
Config.cmake
DESTINATION
${
LIB_INSTALL_DIR
}
/
${
PROJECT_NAME
}
/cmake
)
# Specifies include directories to use when compiling the plugin target
# This way, include_directories does not need to be called in plugins depending on this one
target_include_directories
(
${
PROJECT_NAME
}
INTERFACE
$<INSTALL_INTERFACE:
${
INCLUDE_INSTALL_DIR
}
>
)
#Build tests
IF
(
BUILD_TESTS
)
# Enables testing for this directory and below.
...
...
This diff is collapsed.
Click to expand it.
cmake_modules/laser_scan_utilsConfig.cmake.in
0 → 100644
+
9
−
0
View file @
184734a1
set(@PROJECT_NAME@_VERSION 0.0.1)
@PACKAGE_INIT@
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
check_required_components(@PROJECT_NAME@)
\ 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