-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make building SIO tests depend on ENABLE_SIO
- Loading branch information
Showing
2 changed files
with
28 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,28 @@ | ||
if (TARGET TestDataModelSioBlocks) | ||
set(sio_dependent_tests | ||
write_sio.cpp | ||
read_sio.cpp | ||
read_and_write_sio.cpp | ||
write_timed_sio.cpp | ||
read_timed_sio.cpp | ||
read_frame_sio.cpp | ||
write_frame_sio.cpp | ||
read_frame_legacy_sio.cpp) | ||
set(sio_libs podio::podioSioIO) | ||
foreach( sourcefile ${sio_dependent_tests} ) | ||
CREATE_PODIO_TEST(${sourcefile} "${sio_libs}") | ||
endforeach() | ||
set(sio_dependent_tests | ||
write_sio.cpp | ||
read_sio.cpp | ||
read_and_write_sio.cpp | ||
write_timed_sio.cpp | ||
read_timed_sio.cpp | ||
read_frame_sio.cpp | ||
write_frame_sio.cpp | ||
read_frame_legacy_sio.cpp) | ||
set(sio_libs podio::podioSioIO) | ||
foreach( sourcefile ${sio_dependent_tests} ) | ||
CREATE_PODIO_TEST(${sourcefile} "${sio_libs}") | ||
endforeach() | ||
|
||
# These need to be linked against TTree explicitly, since it is not done | ||
# through another library and the TimedReader/Writer decorators are | ||
# header-only wrappers | ||
target_link_libraries(write_timed_sio PRIVATE ROOT::Tree) | ||
target_link_libraries(read_timed_sio PRIVATE ROOT::Tree) | ||
endif() | ||
# These need to be linked against TTree explicitly, since it is not done | ||
# through another library and the TimedReader/Writer decorators are | ||
# header-only wrappers | ||
target_link_libraries(write_timed_sio PRIVATE ROOT::Tree) | ||
target_link_libraries(read_timed_sio PRIVATE ROOT::Tree) | ||
|
||
if (TARGET read_sio) | ||
set_property(TEST read_sio PROPERTY DEPENDS write_sio) | ||
set_property(TEST read_and_write_sio PROPERTY DEPENDS write_sio) | ||
set_property(TEST read_timed_sio PROPERTY DEPENDS write_timed_sio) | ||
set_property(TEST read_frame_sio PROPERTY DEPENDS write_frame_sio) | ||
set_property(TEST read_frame_legacy_sio PROPERTY DEPENDS write_sio) | ||
set_property(TEST read_sio PROPERTY DEPENDS write_sio) | ||
set_property(TEST read_and_write_sio PROPERTY DEPENDS write_sio) | ||
set_property(TEST read_timed_sio PROPERTY DEPENDS write_timed_sio) | ||
set_property(TEST read_frame_sio PROPERTY DEPENDS write_frame_sio) | ||
set_property(TEST read_frame_legacy_sio PROPERTY DEPENDS write_sio) | ||
|
||
add_test(NAME check_benchmark_outputs_sio COMMAND check_benchmark_outputs write_benchmark_sio.root read_benchmark_sio.root) | ||
set_property(TEST check_benchmark_outputs_sio PROPERTY DEPENDS read_timed_sio write_timed_sio) | ||
endif() | ||
add_test(NAME check_benchmark_outputs_sio COMMAND check_benchmark_outputs write_benchmark_sio.root read_benchmark_sio.root) | ||
set_property(TEST check_benchmark_outputs_sio PROPERTY DEPENDS read_timed_sio write_timed_sio) |