Skip to content
Snippets Groups Projects
Commit 46c3a407 authored by Moritz Kiehn's avatar Moritz Kiehn
Browse files

Tests: move examples sources

parent 32283f13
No related branches found
No related tags found
1 merge request!685Biannual CMake cleanup
...@@ -6,7 +6,9 @@ macro(add_unittest _name) ...@@ -6,7 +6,9 @@ macro(add_unittest _name)
# for now we use the same name also for the target # for now we use the same name also for the target
set(_target ${_name}) set(_target ${_name})
add_executable(${_target} ${ARGN}) add_executable(${_target} ${ARGN})
target_include_directories(${_target} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) target_include_directories(
${_target}
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries( target_link_libraries(
${_target} ${_target}
PRIVATE ActsCore ActsTestsCommonHelpers Boost::unit_test_framework) PRIVATE ActsCore ActsTestsCommonHelpers Boost::unit_test_framework)
...@@ -22,7 +24,9 @@ macro(add_integrationtest _name) ...@@ -22,7 +24,9 @@ macro(add_integrationtest _name)
# for now we use the same name also for the target # for now we use the same name also for the target
set(_target ${_name}) set(_target ${_name})
add_executable(${_target} ${ARGN}) add_executable(${_target} ${ARGN})
target_include_directories(${_target} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) target_include_directories(
${_target}
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries( target_link_libraries(
${_target} ${_target}
PRIVATE ActsCore ActsTestsCommonHelpers Boost::unit_test_framework) PRIVATE ActsCore ActsTestsCommonHelpers Boost::unit_test_framework)
......
add_library( add_library(
ActsCustomLogger SHARED ActsCustomLogger SHARED
src/CustomDefaultLogger.cpp) CustomDefaultLogger.cpp)
target_include_directories( target_include_directories(
ActsCustomLogger ActsCustomLogger
PRIVATE ${PROJECT_SOURCE_DIR}/Core/include) PRIVATE ${PROJECT_SOURCE_DIR}/Core/include)
add_executable( add_executable(
ActsTabulateEnergyLoss ActsTabulateEnergyLoss
src/TabulateEnergyLoss.cpp) TabulateEnergyLoss.cpp)
target_link_libraries( target_link_libraries(
ActsTabulateEnergyLoss ActsTabulateEnergyLoss
PRIVATE ActsCore ActsTestsCommonHelpers) PRIVATE ActsCore ActsTestsCommonHelpers)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment