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/CylindricalTrackingGeometry.cpp
0011 )
0012 
0013 add_library(Acts::TestsCommonHelpers ALIAS ActsTestsCommonHelpers)
0014 
0015 target_compile_definitions(
0016     ActsTestsCommonHelpers
0017     PRIVATE
0018         "ACTS_TEST_DATA_DIR=\"${acts_test_data_dir}\""
0019         BOOST_FILESYSTEM_NO_DEPRECATED
0020 )
0021 target_include_directories(
0022     ActsTestsCommonHelpers
0023     PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
0024 )
0025 if(ACTS_BUILD_EXAMPLES)
0026     target_link_libraries(
0027         ActsTestsCommonHelpers
0028         PUBLIC Acts::Core Acts::ExamplesFramework
0029     )
0030 else()
0031     target_link_libraries(ActsTestsCommonHelpers PUBLIC ActsCore)
0032 endif()
0033 
0034 acts_compile_headers(TestsCommonHelpers GLOB "include/ActsTests/**/*.hpp")