Back to home page

EIC code displayed by LXR

 
 

    


Warning, /acts/Tests/CommonHelpers/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # get the path of the test data directory
0002 file(TO_NATIVE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../Data" acts_test_data_dir)
0003 
0004 add_library(
0005     ActsTestsCommonHelpers
0006     SHARED
0007     src/DataDirectory.cpp
0008     src/DetectorElementStub.cpp
0009     src/CubicTrackingGeometry.cpp
0010     src/CylindricalDetector.cpp
0011     src/CylindricalTrackingGeometry.cpp
0012 )
0013 
0014 add_library(Acts::TestsCommonHelpers ALIAS ActsTestsCommonHelpers)
0015 
0016 target_compile_definitions(
0017     ActsTestsCommonHelpers
0018     PRIVATE
0019         "ACTS_TEST_DATA_DIR=\"${acts_test_data_dir}\""
0020         BOOST_FILESYSTEM_NO_DEPRECATED
0021 )
0022 target_include_directories(
0023     ActsTestsCommonHelpers
0024     PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
0025 )
0026 if(ACTS_BUILD_EXAMPLES)
0027     target_link_libraries(
0028         ActsTestsCommonHelpers
0029         PUBLIC Acts::Core Acts::ExamplesFramework
0030         PRIVATE std::filesystem
0031     )
0032 else()
0033     target_link_libraries(
0034         ActsTestsCommonHelpers
0035         PUBLIC ActsCore
0036         PRIVATE std::filesystem
0037     )
0038 endif()
0039 
0040 acts_compile_headers(TestsCommonHelpers GLOB "include/ActsTests/**/*.hpp")