Skip to content
Snippets Groups Projects
Commit 436458a4 authored by tkozak's avatar tkozak
Browse files

Adjust CMakeList to use add_dependency instead of FIND_PACKAGE for...

Adjust CMakeList to use add_dependency instead of FIND_PACKAGE for DeviceAccess library - now all path to headers are correctly added to the project when ControlSystemAdapter lib and DeviceAccess lib are installed in different directories.
parent 53d9ee23
No related branches found
No related tags found
No related merge requests found
......@@ -16,12 +16,10 @@ option(BUILD_MICRODAQ "Build MicroDAQ module, which depends on HDF5 (libhdf5-dev
# Find the ControlSystemAdapter
add_dependency(ChimeraTK-ControlSystemAdapter 01.05 REQUIRED)
# The dependency on DeviceAccess, incl. the linker flag already comes with the
# controlsystem adapter. As we use DeviceAccess directly and need features from
# a certain version number (which does not necessarily reflect in the CS adapter's
# version number) we add an extra FIND_PACKAGE (not add_dependency, which
# would add all the flags again).
FIND_PACKAGE(ChimeraTK-DeviceAccess 01.08 REQUIRED)
# Find the DeviceAccess
# Although all the linker flags are added again, the include path might be different
# if the libraries are installed in different directories for development purposes.
add_dependency(ChimeraTK-DeviceAccess 01.08 REQUIRED)
# Find the XML parser library libxml++
FIND_PACKAGE(PkgConfig REQUIRED)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment