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
4c2a5cd9
Commit
4c2a5cd9
authored
4 weeks ago
by
Oliver Heidmann
Browse files
Options
Downloads
Patches
Plain Diff
CMake: fixed typo, moved library declaration to main CMake file, added compile commands
parent
72c71a78
No related branches found
Branches containing commit
No related tags found
1 merge request
!145
M300433/cmake improvements and cleanup 2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+5
-1
5 additions, 1 deletion
CMakeLists.txt
src/CMakeLists.txt
+0
-4
0 additions, 4 deletions
src/CMakeLists.txt
with
5 additions
and
5 deletions
CMakeLists.txt
+
5
−
1
View file @
4c2a5cd9
cmake_minimum_required
(
VERSION 3.27 FATAL_ERROR
)
message
(
VERBOSE
"Entering
lib
cdi"
)
message
(
VERBOSE
"Entering cdi
lib
"
)
project
(
cdilib VERSION 2.5.1 LANGUAGES C
)
set
(
CMAKE_C_STANDARD 11
)
set
(
CMAKE_EXPORT_COMPILE_COMMANDS YES
)
add_library
(
cdilib
)
add_library
(
cdilib::cdilib ALIAS cdilib
)
include
(
CTest
)
include
(
CheckIncludeFile
)
...
...
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
0
−
4
View file @
4c2a5cd9
...
...
@@ -199,16 +199,12 @@ endif ()
# Support exporting all symbolds on Windows
set
(
CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON
)
add_library
(
cdilib
${
cdi_src_files
}
# INSTALL_HEADERS_LIST cdi.h
)
target_include_directories
(
cdilib PRIVATE
"
${
PROJECT_BINARY_DIR
}
/src/config.h"
)
target_link_libraries
(
cdilib
${
cdi_linked_libs
}
)
target_compile_definitions
(
cdilib PRIVATE PACKAGE_NAME=
"
${
PROJECT_NAME
}
"
VERSION=
"
${
CMAKE_PROJECT_VERSION
}
"
${
cdi_compile_defs
}
)
add_library
(
cdilib::cdilib ALIAS cdilib
)
include
(
GNUInstallDirs
)
install
(
FILES cdi.h calendar.h cdi_datetime.h julian_date.h DESTINATION
"
${
CMAKE_INSTALL_INCLUDEDIR
}
"
)
...
...
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