Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ControlSystemAdapter-DoocsAdapter
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
ChimeraTK Mirror
ControlSystemAdapter-DoocsAdapter
Commits
7d5a768d
Commit
7d5a768d
authored
5 years ago
by
Martin Christoph Hierholzer
Browse files
Options
Downloads
Patches
Plain Diff
added find script for the config generator
parent
e464f223
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/Modules/FindConfigGenerator.cmake
+40
-0
40 additions, 0 deletions
cmake/Modules/FindConfigGenerator.cmake
with
40 additions
and
0 deletions
cmake/Modules/FindConfigGenerator.cmake
0 → 100644
+
40
−
0
View file @
7d5a768d
#######################################################################################################################
#
# cmake module for finding the config generator
#
# returns:
# ConfigGenerator_FOUND : true or false, depending on whether the package was found
# ConfigGenerator_VERSION : the package version
# ConfigGenerator_DIR : path to the include directory
#
# @author Martin Hierholzer, DESY
#
#######################################################################################################################
#######################################################################################################################
#
# IMPORTANT NOTE:
#
# DO NOT MODIFY THIS FILE inside a project. Instead update the project-template repository and pull the change from
# there. Make sure to keep the file generic, since it will be used by other projects, too.
#
# If you have modified this file inside a project despite this warning, make sure to cherry-pick all your changes
# into the project-template repository immediately.
#
#######################################################################################################################
SET
(
ConfigGenerator_FOUND 0
)
FIND_PATH
(
ConfigGenerator_DIR ConfigGeneratorConfigVersion.cmake
${
CMAKE_CURRENT_LIST_DIR
}
/usr/share/llrfConfigGenerator*
)
include
(
${
ConfigGenerator_DIR
}
/ConfigGeneratorConfigVersion.cmake
)
set
(
ConfigGenerator_VERSION
${
PACKAGE_VERSION
}
)
# use a macro provided by CMake to check if all the listed arguments are valid and set ConfigGenerator_FOUND accordingly
include
(
FindPackageHandleStandardArgs
)
FIND_PACKAGE_HANDLE_STANDARD_ARGS
(
ConfigGenerator REQUIRED_VARS ConfigGenerator_DIR VERSION_VAR ConfigGenerator_VERSION
)
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