Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TEC Server 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
Infrastructure and Support
TEC
TEC Server Config
Commits
49570d5a
Commit
49570d5a
authored
5 years ago
by
Christoph Kampmeyer
Browse files
Options
Downloads
Patches
Plain Diff
Added module to select ControlSystemAdapter for ApplicationCore servers
parent
feb86086
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/set_control_system_adapter.cmake
+49
-0
49 additions, 0 deletions
cmake/set_control_system_adapter.cmake
with
49 additions
and
0 deletions
cmake/set_control_system_adapter.cmake
0 → 100644
+
49
−
0
View file @
49570d5a
#######################################################################################################################
# set_control_system_adapter.cmake
#
# Set the ControlSystemAdapter for a ApplicationCore server
#
# Expects the following input variable:
# ADAPTER - String specifiing the adapter, either DOOCS, OPCUA or EPICSIOC
#
# This macro will add the selected adapter as a dependency and set the following variables:
#
# Adapter_LINK_FLAGS - Link flags provided by the adapter library
# Adapter_LIBRARIES - Libraries that are dependencies of the adapter
#
#######################################################################################################################
#######################################################################################################################
#
# 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.
#
#######################################################################################################################
# Select control system adapter
IF
(
ADAPTER STREQUAL
"OPCUA"
)
message
(
"Building against the OPC UA ControlSystemAdater"
)
add_dependency
(
ChimeraTK-ControlSystemAdapter-OPCUAAdapter REQUIRED
)
set
(
Adapter_LINK_FLAGS
${
ChimeraTK-ControlSystemAdapter-OPCUAAdapter_LINK_FLAGS
}
)
set
(
Adapter_LIBRARIES
${
ChimeraTK-ControlSystemAdapter-OPCUAAdapter_LIBRARIES
}
)
ELSEIF
(
ADAPTER STREQUAL
"DOOCS"
)
message
(
"Building against the DOOCS ControlSystemAdater"
)
add_dependency
(
ChimeraTK-ControlSystemAdapter-DoocsAdapter REQUIRED
)
set
(
Adapter_LINK_FLAGS
${
ChimeraTK-ControlSystemAdapter-DoocsAdapter_LINK_FLAGS
}
)
set
(
Adapter_LIBRARIES
${
ChimeraTK-ControlSystemAdapter-DoocsAdapter_LIBRARIES
}
)
ELSEIF
(
ADAPTER STREQUAL
"EPICSIOC"
)
message
(
"Building against the EPICS IOC ControlSystemAdater"
)
add_dependency
(
ChimeraTK-ControlSystemAdapter-EPICS-IOC-Adapter REQUIRED
)
set
(
Adapter_LINK_FLAGS
${
ChimeraTK-ControlSystemAdapter-EPICS-IOC-Adapter_LINK_FLAGS
}
)
set
(
Adapter_LIBRARIES
${
ChimeraTK-ControlSystemAdapter-EPICS-IOC-Adapter_LIBRARIES
}
)
ELSE
()
message
(
FATAL_ERROR
"Please select your ControlSystemAdapter to use by passing to the cmake command line:
\n
"
" -DADAPTER=DOOCS to build a DOOCS server
\n
"
" -DADAPTER=OPCUA to build an OPC UA server
\n
"
" -DADAPTER=EPICSIOC to build an EPICS IOC"
)
ENDIF
()
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