mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-06-06 12:50:40 +02:00
add simdjson as public for network_io
in ZmqHeader.hpp we are using templates that depend on simdjson. other libraries should also link simdjson
This commit is contained in:
parent
47cf462f3d
commit
35d2b274f4
@ -13,10 +13,10 @@ int main() {
|
||||
int rc = socket.receive(header, reinterpret_cast<std::byte *>(data));
|
||||
aare::logger::info("Received header: ", header.to_string());
|
||||
auto *data_int = reinterpret_cast<uint32_t *>(data);
|
||||
for (int i=0;i<header.npixelsx;i++){
|
||||
for (int j=0;j<header.npixelsy;j++){
|
||||
for (int i = 0; i < header.npixelsx; i++) {
|
||||
for (int j = 0; j < header.npixelsy; j++) {
|
||||
// verify that the sent data is correct
|
||||
assert(data_int[i*header.npixelsy+j] == (i+j));
|
||||
assert(data_int[i * header.npixelsy + j] == (i + j));
|
||||
}
|
||||
}
|
||||
aare::logger::info("Frame verified");
|
||||
|
@ -20,8 +20,8 @@ add_library(network_io STATIC
|
||||
|
||||
|
||||
target_include_directories(network_io PUBLIC include)
|
||||
target_link_libraries(network_io PRIVATE simdjson libzmq fmt::fmt core utils aare_compiler_flags )
|
||||
# target_link_libraries(network_io LINK_PRIVATE )
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user