Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Trip Event Logger Config
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
MSK-SW
Low-Level Radio Frequency
Trip Event Logger
Trip Event Logger Config
Commits
7eace484
Commit
7eace484
authored
6 years ago
by
Martin Christoph Hierholzer
Browse files
Options
Downloads
Patches
Plain Diff
project-template: use GNUInstallDirs to determin install destionations
parent
173bb9ae
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/create_cmake_config_files.cmake
+6
-4
6 additions, 4 deletions
cmake/create_cmake_config_files.cmake
with
6 additions
and
4 deletions
cmake/create_cmake_config_files.cmake
+
6
−
4
View file @
7eace484
...
...
@@ -27,6 +27,8 @@
#
#######################################################################################################################
include
(
GNUInstallDirs
)
# create variables for standard makefiles
set
(
${
PROJECT_NAME
}
_CXX_FLAGS_MAKEFILE
"
${${
PROJECT_NAME
}
_CXX_FLAGS
}
"
)
...
...
@@ -65,14 +67,14 @@ configure_file(${PROJECT_BINARY_DIR}/cmake/${PROJECT_NAME}-config.in "${PROJECT_
# install cmake find_package configuration file
install
(
FILES
"
${
PROJECT_BINARY_DIR
}
/
${
PROJECT_NAME
}
Config.cmake"
DESTINATION
lib
/cmake/
${
PROJECT_NAME
}
COMPONENT dev
)
DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
/cmake/
${
PROJECT_NAME
}
COMPONENT dev
)
install
(
FILES
"
${
PROJECT_BINARY_DIR
}
/
${
PROJECT_NAME
}
ConfigVersion.cmake"
DESTINATION
lib
/cmake/
${
PROJECT_NAME
}
COMPONENT dev
)
DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
/cmake/
${
PROJECT_NAME
}
COMPONENT dev
)
# install same cmake configuration file another time into the Modules cmake subdirectory for compatibility reasons
install
(
FILES
"
${
PROJECT_BINARY_DIR
}
/
${
PROJECT_NAME
}
Config.cmake"
DESTINATION
share
/cmake-
${
CMAKE_MAJOR_VERSION
}
.
${
CMAKE_MINOR_VERSION
}
/Modules RENAME Find
${
PROJECT_NAME
}
.cmake COMPONENT dev
)
DESTINATION
${
CMAKE_INSTALL_DATAROOTDIR
}
/cmake-
${
CMAKE_MAJOR_VERSION
}
.
${
CMAKE_MINOR_VERSION
}
/Modules RENAME Find
${
PROJECT_NAME
}
.cmake COMPONENT dev
)
# install script for Makefiles
install
(
PROGRAMS
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
PROJECT_NAME
}
-config DESTINATION
bin
COMPONENT dev
)
install
(
PROGRAMS
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
PROJECT_NAME
}
-config DESTINATION
${
CMAKE_INSTALL_BINDIR
}
COMPONENT dev
)
This diff is collapsed.
Click to expand it.
Martin Christoph Hierholzer
@martin.hierholzer
mentioned in commit
da303150
·
2 years ago
mentioned in commit
da303150
mentioned in commit da30315018b5d03ded5b1491a67898b1de98e33b
Toggle commit list
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