Files
sf_daq_buffer/CMakeLists.txt
T
babic_a 95ec9678fd Add conditional build of jf-live-writer
jf-live-writer requires PHDF5, which is not very popular
on development machines. If you want to enable this, you have
to pass BUILD_JF_LIVE_WRITER=ON to cmake. See the README.
2021-04-08 11:53:05 +02:00

42 lines
1.0 KiB
CMake

cmake_minimum_required(VERSION 3.12)
project(sf_daq_buffer)
set(CMAKE_CXX_STANDARD 17)
set (SF_DAQ_BUFFER_VERSION "1.0.0")
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
# Download and unpack googletest at configure time
configure_file(googletest.in googletest-download/CMakeLists.txt)
execute_process(
COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" .
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/googletest-download"
)
execute_process(
COMMAND "${CMAKE_COMMAND}" --build .
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/googletest-download"
)
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
add_subdirectory(
${CMAKE_CURRENT_BINARY_DIR}/googletest-src
${CMAKE_CURRENT_BINARY_DIR}/googletest-build
EXCLUDE_FROM_ALL)
add_subdirectory("core-buffer")
add_subdirectory("jf-udp-recv")
add_subdirectory("jf-buffer-writer")
add_subdirectory("jf-assembler")
add_subdirectory("sf-stream")
add_subdirectory("sf-writer")
if(BUILD_JF_LIVE_WRITER)
add_subdirectory("jf-live-writer")
endif()