mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-06-19 10:37:12 +02:00
zmq sender and receiver examples
This commit is contained in:
@ -1,6 +1,27 @@
|
||||
add_library(network_io STATIC src/ZmqSocketReceiver.cpp)
|
||||
|
||||
FetchContent_Declare(
|
||||
simdjson
|
||||
GIT_REPOSITORY https://github.com/simdjson/simdjson.git
|
||||
GIT_TAG tags/v3.8.0
|
||||
GIT_SHALLOW TRUE
|
||||
)
|
||||
|
||||
FetchContent_MakeAvailable(simdjson)
|
||||
|
||||
|
||||
|
||||
add_library(network_io STATIC
|
||||
src/ZmqSocketReceiver.cpp
|
||||
src/ZmqSocketSender.cpp
|
||||
src/ZmqSocket.cpp
|
||||
src/ZmqHeader.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 PRIVATE simdjson libzmq fmt::fmt core utils aare_compiler_flags )
|
||||
# target_link_libraries(network_io LINK_PRIVATE )
|
||||
|
||||
if(AARE_PYTHON_BINDINGS)
|
||||
set_property(TARGET file_io PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
@ -12,4 +33,4 @@ endif()
|
||||
# )
|
||||
# target_sources(tests PRIVATE ${TestSources} )
|
||||
# target_link_libraries(tests PRIVATE core network_io)
|
||||
# endif()
|
||||
# endif()
|
||||
|
Reference in New Issue
Block a user