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