mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-02-18 04:38:41 +01:00
hdf5 definitions in test when not compiled with hdf5
This commit is contained in:
@@ -24,11 +24,16 @@ target_sources(tests PRIVATE
|
||||
${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_include_directories(tests
|
||||
PUBLIC
|
||||
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../src>"
|
||||
|
||||
Reference in New Issue
Block a user