Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libcdi
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
Releases
Container Registry
Model registry
Operate
Environments
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
mpim-sw
libcdi
Commits
1f9578eb
Commit
1f9578eb
authored
1 month ago
by
Oliver Heidmann
Browse files
Options
Downloads
Patches
Plain Diff
moved install logic into main file
parent
1317e4cd
No related branches found
No related tags found
No related merge requests found
Pipeline
#99517
failed
1 month ago
Stage: basic
Stage: levante
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+30
-0
30 additions, 0 deletions
CMakeLists.txt
src/CMakeLists.txt
+0
-21
0 additions, 21 deletions
src/CMakeLists.txt
with
30 additions
and
21 deletions
CMakeLists.txt
+
30
−
0
View file @
1f9578eb
...
...
@@ -93,3 +93,33 @@ endif ()
if
(
BUILD_TESTING
)
add_subdirectory
(
tests
)
endif
()
# --- Installation
# packages required for installation
include
(
GNUInstallDirs
)
include
(
CMakePackageConfigHelpers
)
install
(
TARGETS cdilib
ARCHIVE DESTINATION
"
${
CMAKE_INSTALL_LIBDIR
}
"
RUNTIME DESTINATION
"
${
CMAKE_INSTALL_BINDIR
}
"
LIBRARY DESTINATION
"
${
CMAKE_INSTALL_LIBDIR
}
"
)
get_target_property
(
cdi_install_files cdilib CDI_INSTALL_HEADERS
)
install
(
FILES
${
cdi_install_files
}
DESTINATION
"
${
CMAKE_INSTALL_INCLUDEDIR
}
"
)
# -- create configuration files
configure_package_config_file
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/cmake/cdi/cdi-config.cmake.in"
"
${
CMAKE_BINARY_DIR
}
/cmake/cdi-config.cmake"
INSTALL_DESTINATION
"
${
CMAKE_INSTALL_LIBDIR
}
/cmake/cdi"
)
write_basic_package_version_file
(
"
${
CMAKE_BINARY_DIR
}
/cmake/cdi-config-version.cmake"
VERSION
"
${
PACKAGE_VERSION
}
"
COMPATIBILITY SameMajorVersion
)
#Install CMake configuration files to
install
(
FILES
"
${
CMAKE_BINARY_DIR
}
/cmake/cdi-config.cmake"
"
${
CMAKE_BINARY_DIR
}
/cmake/cdi-config-version.cmake"
DESTINATION
"
${
CMAKE_INSTALL_LIBDIR
}
/cmake/cdi"
)
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
0
−
21
View file @
1f9578eb
...
...
@@ -216,24 +216,3 @@ target_link_libraries(cdilib ${cdi_linked_libs})
target_compile_definitions
(
cdilib PRIVATE PACKAGE_NAME=
"
${
PROJECT_NAME
}
"
VERSION=
"
${
CMAKE_PROJECT_VERSION
}
"
${
cdi_compile_defs
}
)
include
(
GNUInstallDirs
)
install
(
FILES cdi.h calendar.h cdi_datetime.h julian_date.h DESTINATION
"
${
CMAKE_INSTALL_INCLUDEDIR
}
"
)
install
(
TARGETS cdilib
ARCHIVE DESTINATION
"
${
CMAKE_INSTALL_LIBDIR
}
"
RUNTIME DESTINATION
"
${
CMAKE_INSTALL_BINDIR
}
"
LIBRARY DESTINATION
"
${
CMAKE_INSTALL_LIBDIR
}
"
)
include
(
CMakePackageConfigHelpers
)
configure_package_config_file
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake/cdi/cdi-config.cmake.in"
"
${
CMAKE_BINARY_DIR
}
/cmake/cdi-config.cmake"
INSTALL_DESTINATION
"
${
CMAKE_INSTALL_LIBDIR
}
/cmake/cdi"
)
write_basic_package_version_file
(
"
${
CMAKE_BINARY_DIR
}
/cmake/cdi-config-version.cmake"
VERSION
"
${
PACKAGE_VERSION
}
"
COMPATIBILITY SameMajorVersion
)
install
(
FILES
"
${
CMAKE_BINARY_DIR
}
/cmake/cdi-config.cmake"
"
${
CMAKE_BINARY_DIR
}
/cmake/cdi-config-version.cmake"
DESTINATION
"
${
CMAKE_INSTALL_LIBDIR
}
/cmake/cdi"
)
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