diff --git a/src/epics/CMakeLists.txt b/src/epics/CMakeLists.txt index 807298ee007e48af880e82bb27b64ad38ffc04db..ac390263c324215f18de77852cd54ec1f25befaf 100644 --- a/src/epics/CMakeLists.txt +++ b/src/epics/CMakeLists.txt @@ -1 +1,2 @@ -add_subdirectory(seq) \ No newline at end of file +add_subdirectory(seq) +add_subdirectory(edcu) diff --git a/src/epics/edcu/CMakeLists.txt b/src/epics/edcu/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..3863c819c1a3ff2a4b02ca46de1e712e230f3885 --- /dev/null +++ b/src/epics/edcu/CMakeLists.txt @@ -0,0 +1,36 @@ +if (Boost_FOUND) + + add_executable(standalone_edc + standalone_edcu.cc + ${CMAKE_CURRENT_SOURCE_DIR}/../../drv/rfm.c) + #target_compile_options(standalone_edc PRIVATE -fsanitize=address) + #target_link_libraries(standalone_edc PRIVATE asan) + #target_compile_options(standalone_edc PRIVATE + # -fstack-protector -fstack-protector-strong) + target_include_directories(standalone_edc PUBLIC + "${CMAKE_CURRENT_SOURCE_DIR}/../../include" + "${CMAKE_CURRENT_SOURCE_DIR}/../../include/drv" + ${Boost_INCLUDE_DIRS}) + target_link_libraries(standalone_edc PUBLIC + args + epics::ca + driver::ini_parsing + pv::simple_pv + ${Boost_LIBRARIES} + ${CMAKE_THREAD_LIBS_INIT} + driver::gpsclock) + target_requires_cpp11(standalone_edc PUBLIC) + + configure_file(test/epics_test.py ${CMAKE_CURRENT_BINARY_DIR}/epics_test.py COPYONLY) + configure_file(test/daqdrc_standalone_edc_live_test ${CMAKE_CURRENT_BINARY_DIR}/daqdrc_standalone_edc_live_test COPYONLY) + configure_file(test/test_standalone_edc_live_nds.sh.in ${CMAKE_CURRENT_BINARY_DIR}/test_standalone_edc_live_nds.sh @ONLY) + + add_test(NAME test_standalone_edc_live_nds + COMMAND /bin/bash ./test_standalone_edc_live_nds.sh + WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}") + + install(TARGETS standalone_edc DESTINATION bin) + +else(Boost_FOUND) + message(WARNING "The standalone_edc will not be build as boost was not found") +endif (Boost_FOUND) \ No newline at end of file diff --git a/src/epics/seq/gps.hh b/src/epics/edcu/gps.hh similarity index 100% rename from src/epics/seq/gps.hh rename to src/epics/edcu/gps.hh diff --git a/src/epics/seq/standalone_edcu.cc b/src/epics/edcu/standalone_edcu.cc similarity index 100% rename from src/epics/seq/standalone_edcu.cc rename to src/epics/edcu/standalone_edcu.cc diff --git a/src/epics/seq/test/daqdrc_standalone_edc_live_test b/src/epics/edcu/test/daqdrc_standalone_edc_live_test similarity index 100% rename from src/epics/seq/test/daqdrc_standalone_edc_live_test rename to src/epics/edcu/test/daqdrc_standalone_edc_live_test diff --git a/src/epics/seq/test/epics_test.py b/src/epics/edcu/test/epics_test.py similarity index 100% rename from src/epics/seq/test/epics_test.py rename to src/epics/edcu/test/epics_test.py diff --git a/src/epics/seq/test/test_standalone_edc_live_nds.sh.in b/src/epics/edcu/test/test_standalone_edc_live_nds.sh.in similarity index 100% rename from src/epics/seq/test/test_standalone_edc_live_nds.sh.in rename to src/epics/edcu/test/test_standalone_edc_live_nds.sh.in diff --git a/src/epics/seq/CMakeLists.txt b/src/epics/seq/CMakeLists.txt index e6e5b7d0e38768cb6f454d98f6d112db2fd77e43..3c9e1226b484e065e7b4226242dfadb56953c4b9 100644 --- a/src/epics/seq/CMakeLists.txt +++ b/src/epics/seq/CMakeLists.txt @@ -19,41 +19,3 @@ add_executable(modelsdf_seq main.cc sdf_file_loaded.c) target_link_libraries(modelsdf_seq PUBLIC ini_parsing shmem epics::seq epics::ca) - - -if (Boost_FOUND) - -add_executable(standalone_edc - standalone_edcu.cc - ${CMAKE_CURRENT_SOURCE_DIR}/../../drv/rfm.c) -#target_compile_options(standalone_edc PRIVATE -fsanitize=address) -#target_link_libraries(standalone_edc PRIVATE asan) -#target_compile_options(standalone_edc PRIVATE -# -fstack-protector -fstack-protector-strong) -target_include_directories(standalone_edc PUBLIC - "${CMAKE_CURRENT_SOURCE_DIR}/../../include" - "${CMAKE_CURRENT_SOURCE_DIR}/../../include/drv" - ${Boost_INCLUDE_DIRS}) -target_link_libraries(standalone_edc PUBLIC - args - epics::ca - driver::ini_parsing - pv::simple_pv - ${Boost_LIBRARIES} - ${CMAKE_THREAD_LIBS_INIT} - driver::gpsclock) -target_requires_cpp11(standalone_edc PUBLIC) - -configure_file(test/epics_test.py ${CMAKE_CURRENT_BINARY_DIR}/epics_test.py COPYONLY) -configure_file(test/daqdrc_standalone_edc_live_test ${CMAKE_CURRENT_BINARY_DIR}/daqdrc_standalone_edc_live_test COPYONLY) -configure_file(test/test_standalone_edc_live_nds.sh.in ${CMAKE_CURRENT_BINARY_DIR}/test_standalone_edc_live_nds.sh @ONLY) - -add_test(NAME test_standalone_edc_live_nds - COMMAND /bin/bash ./test_standalone_edc_live_nds.sh - WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}") - -install(TARGETS standalone_edc DESTINATION bin) - -else(Boost_FOUND) - message(WARNING "The standalone_edc will not be build as boost was not found") -endif (Boost_FOUND)