Try to create an override mechanism for Beamline_overview_images.json

This commit is contained in:
mathis_s committed 2026-09-10 12:01:01 +02:00
1 parent 7f9451771b
commit c4bf8d202d
1 file changed
+17
+17
View File
@@ -15,9 +15,26 @@ if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
)
endif()
# Install all common pages except Beamline_overview_images.json.
# That file is handled separately so the parent project can override it.
install(
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/pages/
DESTINATION .
PATTERN "Beamline_overview_images.json" EXCLUDE
)
# The parent project may provide a different file through
# BEAMLINE_OVERVIEW_IMAGES_FILE. Otherwise use the common default.
if(NOT DEFINED BEAMLINE_OVERVIEW_IMAGES_FILE)
set(
BEAMLINE_OVERVIEW_IMAGES_FILE
"${CMAKE_CURRENT_SOURCE_DIR}/pages/Beamline_elements/Beamline_overview_images.json"
)
endif()
install(
FILES "${BEAMLINE_OVERVIEW_IMAGES_FILE}"
DESTINATION Beamline_elements
)
install(