mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-01 13:22:24 +02:00
Prepare unit tests targets
This commit is contained in:
@@ -3,7 +3,7 @@ file(GLOB SOURCES
|
||||
src/compression/*.cpp
|
||||
src/compression/*.c)
|
||||
|
||||
add_library(core-writer ${SOURCES})
|
||||
add_library(core-writer STATIC ${SOURCES})
|
||||
include_directories(core-writer external/)
|
||||
|
||||
target_include_directories(core-writer PUBLIC
|
||||
@@ -14,5 +14,6 @@ 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)
|
||||
@@ -0,0 +1,9 @@
|
||||
add_executable(core-writer_tests test_main.cpp)
|
||||
|
||||
target_link_libraries(core-writer_tests
|
||||
core-writer
|
||||
gtest
|
||||
zmq
|
||||
hdf5
|
||||
hdf5_hl
|
||||
hdf5_cpp)
|
||||
Reference in New Issue
Block a user