Skip to content
Snippets Groups Projects
Commit 662507e2 authored by Jonathan Hanks's avatar Jonathan Hanks
Browse files

Move the standalone_edcu code to its own directory

parent e915057d
No related branches found
No related tags found
2 merge requests!439RCG 5.0 release fro deb 10,!343convert the sequencer to C++
add_subdirectory(seq)
\ No newline at end of file
add_subdirectory(seq)
add_subdirectory(edcu)
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
File moved
......@@ -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)
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