Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Tests/CMakeLists.txt
T

46 lines
1.7 KiB
CMake

#
# CMakeLists.txt for Lts/Tests (Qt6 Migration)
#
# This module provides database initialization scripts and test data.
# It does NOT build any binaries - only installs files and provides
# manual targets for database initialization.
#
# Manual targets (not part of automatic build):
# make db - Create production database (guez)
# make test-db - Create test database with exercise data
# make ahtc-db - Create AHTC database
# make ahtc-test-db - Create AHTC test database
# make qatar-db - Create Qatar database
# make l400p2-db - Create L400P2 database
# make demo-db - Create Demo database
# make commaster-db - Create ComMaster database
#
# Add subdirectory for database initialization scripts
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/DatabaseInitialisation")
add_subdirectory(DatabaseInitialisation)
else()
message(STATUS "Skipping Lts/Tests/DatabaseInitialisation - directory not found")
endif()
# Install Bt56Test files
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/Bt56Test")
install(DIRECTORY Bt56Test/
DESTINATION share/Lts/tests/Bt56Test
FILES_MATCHING PATTERN "*.py" PATTERN "*.sql" PATTERN "*.xml"
PATTERN "*.txt" PATTERN "*.sh" PATTERN "*.flt")
endif()
# Install Schnoeggersburg files
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/Schnoeggersburg")
install(DIRECTORY Schnoeggersburg/
DESTINATION share/Lts/tests/Schnoeggersburg
FILES_MATCHING PATTERN "*.csv")
endif()
# Install lts-cc.conf template
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../lts-cc.conf")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/../lts-cc.conf"
DESTINATION share/Lts/tests
RENAME lts-cc.conf.template)
endif()