File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ o2_add_test(DPLRawParser
8787 COMPONENT_NAME DPLUtils
8888 LABELS dplutils )
8989
90+ if (TARGET benchmark::benchmark)
9091foreach (b
9192 RawParser
9293 )
@@ -96,3 +97,4 @@ foreach(b
9697 LABELS dplutils benchmark
9798 PUBLIC_LINK_LIBRARIES O2::DPLUtils benchmark::benchmark )
9899endforeach ()
100+ endif ()
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ o2_add_executable(benchmark-empty-loop
4747 COMPONENT_NAME mergers
4848 PUBLIC_LINK_LIBRARIES O2::Mergers )
4949
50+ if (TARGET benchmark::benchmark)
5051o2_add_executable (benchmark-miscellaneous
5152 SOURCES test /benchmark_Miscellaneous.cxx
5253 COMPONENT_NAME mergers
@@ -66,6 +67,7 @@ o2_add_executable(benchmark-types
6667 SOURCES test /benchmark_Types.cxx
6768 COMPONENT_NAME mergers
6869 PUBLIC_LINK_LIBRARIES O2::Mergers benchmark::benchmark )
70+ endif ()
6971
7072o2_add_test (InfrastructureBuilder
7173 SOURCES test /test_InfrastructureBuilder.cxx
@@ -83,4 +85,4 @@ o2_add_test(ObjectStore
8385 SOURCES test /test_ObjectStore.cxx
8486 COMPONENT_NAME mergers
8587 PUBLIC_LINK_LIBRARIES O2::Mergers
86- LABELS utils )
88+ LABELS utils )
Original file line number Diff line number Diff line change @@ -35,11 +35,13 @@ o2_add_test(CombinedIterator
3535 COMPONENT_NAME rANS
3636 LABELS utils )
3737
38+ if (TARGET benchmark::benchmark)
3839o2_add_executable (CombinedIterator
3940 SOURCES benchmarks/bench_ransCombinedIterator.cxx
4041 COMPONENT_NAME rANS
4142 IS_BENCHMARK
4243 PUBLIC_LINK_LIBRARIES O2::rANS benchmark::benchmark )
44+ endif ()
4345
4446o2_add_executable (rans-encode-decode-8
4547 TARGETVARNAME targetName
@@ -57,4 +59,4 @@ o2_add_executable(rans-encode-decode-32
5759 TARGETVARNAME targetName
5860 SOURCES run/bin-encode-decode.cxx
5961 PUBLIC_LINK_LIBRARIES O2::rANS Boost::program_options )
60- target_compile_definitions (${targetName} PRIVATE -DSOURCE_T=uint32_t )
62+ target_compile_definitions (${targetName} PRIVATE -DSOURCE_T=uint32_t )
You can’t perform that action at this time.
0 commit comments