mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-14 19:45:37 +02:00
19 lines
461 B
CMake
19 lines
461 B
CMake
add_subdirectory(external/)
|
|
|
|
file(GLOB SOURCES
|
|
src/*.cpp
|
|
src/writer/*.cpp
|
|
src/receiver/*.cpp)
|
|
|
|
add_library(core-writer STATIC ${SOURCES})
|
|
include_directories(core-writer external/)
|
|
|
|
target_include_directories(core-writer PUBLIC include/)
|
|
|
|
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|
target_compile_definitions(core-writer PRIVATE DEBUG_OUTPUT)
|
|
endif()
|
|
|
|
enable_testing()
|
|
add_subdirectory(test/)
|
|
add_test(core-writer_tests core-writer_tests) |