mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-06-21 11:17:58 +02:00

* add config files for multimodule receiving * read subfiles with unordered and missing frames * save work debugging * Revert "save work debugging" This reverts commite791992a05
. * Revert "read subfiles with unordered and missing frames" This reverts commit1177fd129d
. * throw when two frames have different frame numbers * write single part RawFile (working beta) * correct total number of frames in master file * add new mythen file with syncd frames * save work * save work for receive multimodule multimodule config results in too much packet loss. needs more debugging. * setup Task Distributiosn/ parallelization programming model * read frames with same frame number * clang-tidy fixes, formatting, add tests * added second receiver * Synchronize between zmq streams and merge frames * improve readability in loop * fix failing tests * add simple test for merge frames --------- Co-authored-by: Bechir <bechir.brahem420@gmail.com> Co-authored-by: Erik Frojdh <erik.frojdh@gmail.com>
42 lines
1.1 KiB
CMake
42 lines
1.1 KiB
CMake
|
|
FetchContent_Declare(
|
|
simdjson
|
|
GIT_REPOSITORY https://github.com/simdjson/simdjson.git
|
|
GIT_TAG tags/v3.8.0
|
|
GIT_SHALLOW TRUE
|
|
)
|
|
|
|
FetchContent_MakeAvailable(simdjson)
|
|
# hide simdjson warnings by making the includes system includes
|
|
get_target_property(_inc simdjson INTERFACE_INCLUDE_DIRECTORIES)
|
|
target_include_directories(simdjson SYSTEM INTERFACE ${_inc})
|
|
|
|
|
|
add_library(network_io STATIC
|
|
src/ZmqSocketReceiver.cpp
|
|
src/ZmqSocketSender.cpp
|
|
src/ZmqSocket.cpp
|
|
src/ZmqHeader.cpp
|
|
src/ZmqMultiReceiver.cpp
|
|
src/ZmqVentilator.cpp
|
|
src/ZmqWorker.cpp
|
|
src/ZmqSink.cpp
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(network_io PUBLIC include)
|
|
target_link_libraries(network_io PRIVATE libzmq fmt::fmt core utils aare_compiler_flags )
|
|
target_link_libraries(network_io PUBLIC simdjson)
|
|
|
|
if(AARE_PYTHON_BINDINGS)
|
|
set_property(TARGET file_io PROPERTY POSITION_INDEPENDENT_CODE ON)
|
|
endif()
|
|
|
|
if(AARE_TESTS)
|
|
set(TestSources
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test/ZmqHeader.test.cpp
|
|
)
|
|
target_sources(tests PRIVATE ${TestSources} )
|
|
target_link_libraries(tests PRIVATE network_io core utils)
|
|
endif() |