mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-12-27 22:51:19 +01:00
* added check if reciever is running * added some tests * uups dummy test - deleted test file * changed test * stopped receiver * some tests dont run * added some more tests as they also affect fifo structure * fixed tests to work with test_simualtor for all cmdcall tests * minor --------- Co-authored-by: mazzol_a <mazzol_a@pc17378.psi.ch> Co-authored-by: Dhanya Thattil <dhanya.thattil@psi.ch>
53 lines
2.0 KiB
CMake
Executable File
53 lines
2.0 KiB
CMake
Executable File
# SPDX-License-Identifier: LGPL-3.0-or-other
|
|
# Copyright (C) 2021 Contributors to the SLS Detector Package
|
|
|
|
|
|
target_sources(tests PRIVATE
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test-SharedMemory.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test-slsDetector.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Caller/test-Caller.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Caller/test-Caller-rx.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Caller/test-Caller-rx-running.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Caller/test-Caller-pattern.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Caller/test-Caller-eiger.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Caller/test-Caller-jungfrau.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Caller/test-Caller-mythen3.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Caller/test-Caller-gotthard2.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Caller/test-Caller-chiptestboard.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Caller/test-Caller-xilinx-chiptestboard.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Caller/test-Caller-moench.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Caller/test-Caller-global.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Caller/test-Caller-acquire.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Caller/test-Caller-master-attributes.cpp
|
|
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test-Result.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test-CmdParser.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test-Module.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test-Pattern.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test-CtbConfig.cpp
|
|
)
|
|
|
|
# HDF5 file
|
|
if (SLS_USE_HDF5)
|
|
target_compile_definitions(tests
|
|
PUBLIC
|
|
-DHDF5C ${HDF5_DEFINITIONS}
|
|
)
|
|
endif (SLS_USE_HDF5)
|
|
|
|
target_compile_options(tests
|
|
PRIVATE
|
|
# Suppress warnings for deprecated functions in rapidjson
|
|
-Wno-deprecated-declarations
|
|
)
|
|
|
|
target_include_directories(tests
|
|
PUBLIC
|
|
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../src>"
|
|
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include/sls>"
|
|
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../../slsReceiverSoftware/src>"
|
|
PRIVATE
|
|
${SLS_INTERNAL_RAPIDJSON_DIR}
|
|
) |