Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LLRF Piezo Server
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
Piezo
LLRF Piezo Server
Merge requests
!4
feat(project-template): add VersionInfo.h generation (#40)
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
feat(project-template): add VersionInfo.h generation (#40)
update-project-template
into
master
Overview
0
Commits
2
Pipelines
0
Changes
2
Merged
Martin Christoph Hierholzer
requested to merge
update-project-template
into
master
1 year ago
Overview
0
Commits
2
Pipelines
0
Changes
2
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
649e41d2
2 commits,
1 year ago
2 files
+
18
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
cmake/set_version_numbers.cmake
+
9
−
0
Options
@@ -35,3 +35,12 @@ endif( ${PROJECT_NAME}_BUILDVERSION )
set
(
${
PROJECT_NAME
}
_FULL_LIBRARY_VERSION
${${
PROJECT_NAME
}
_SOVERSION
}
.
${${
PROJECT_NAME
}
_PATCH_VERSION
}
)
# The following generates a cpp header file that can be used to access the CMAKE version info.
# The "VersionInfo.h" is available in the project's build directory and included in the build.
string
(
REGEX REPLACE
"^0"
""
${
PROJECT_NAME
}
_MAJOR_VERSION_INT
${${
PROJECT_NAME
}
_MAJOR_VERSION
}
)
string
(
REGEX REPLACE
"^0"
""
${
PROJECT_NAME
}
_MINOR_VERSION_INT
${${
PROJECT_NAME
}
_MINOR_VERSION
}
)
string
(
REGEX REPLACE
"^0"
""
${
PROJECT_NAME
}
_PATCH_VERSION_INT
${${
PROJECT_NAME
}
_PATCH_VERSION
}
)
configure_file
(
cmake/version_info_template.h.in
"
${
PROJECT_BINARY_DIR
}
/generated/VersionInfo.h"
)
include_directories
(
${
PROJECT_BINARY_DIR
}
/generated
)
Loading