diff --git a/slsDetectorGui/slsDetectorPlotting/src/SlsQt2DPlot.cpp b/slsDetectorGui/slsDetectorPlotting/src/SlsQt2DPlot.cpp index a1ef9c753..d2abdbe3d 100644 --- a/slsDetectorGui/slsDetectorPlotting/src/SlsQt2DPlot.cpp +++ b/slsDetectorGui/slsDetectorPlotting/src/SlsQt2DPlot.cpp @@ -1,5 +1,5 @@ #include "SlsQt2DPlot.h" -#include "ansi.h" +// #include "ansi.h" #include #include diff --git a/slsDetectorSoftware/CMakeLists.txt b/slsDetectorSoftware/CMakeLists.txt index 945c0319c..1073e23c3 100755 --- a/slsDetectorSoftware/CMakeLists.txt +++ b/slsDetectorSoftware/CMakeLists.txt @@ -32,11 +32,12 @@ target_link_libraries(slsDetectorShared PUBLIC slsProjectOptions slsProjectWarnings slsSupportLib - ${ZeroMQ_LIBRARIES} + zmq pthread rt ) + set(PUBLICHEADERS include/slsDetectorUsers.h include/detectorData.h @@ -69,7 +70,7 @@ foreach(val RANGE ${len2}) target_link_libraries(${val1} slsDetectorShared pthread - ${ZeroMQ_LIBRARIES} + zmq rt ) set_target_properties(${val1} PROPERTIES diff --git a/slsDetectorSoftware/src/SharedMemory.h b/slsDetectorSoftware/src/SharedMemory.h index 33590e182..0130d4435 100755 --- a/slsDetectorSoftware/src/SharedMemory.h +++ b/slsDetectorSoftware/src/SharedMemory.h @@ -8,7 +8,6 @@ *@short functions basic implemenation of shared memory */ -#include "ansi.h" #include "logger.h" #include "sls_detector_exceptions.h" @@ -18,7 +17,7 @@ #include // O_CREAT, O_TRUNC.. #include #include -#include // printf +// #include // printf #include // shared memory #include // fstat #include diff --git a/slsReceiverSoftware/src/BinaryFileStatic.h b/slsReceiverSoftware/src/BinaryFileStatic.h index b1e60fd00..c6181eb53 100755 --- a/slsReceiverSoftware/src/BinaryFileStatic.h +++ b/slsReceiverSoftware/src/BinaryFileStatic.h @@ -9,7 +9,6 @@ */ -#include "ansi.h" #include "logger.h" #include diff --git a/slsSupportLib/CMakeLists.txt b/slsSupportLib/CMakeLists.txt index 8475fb524..be82b7f48 100755 --- a/slsSupportLib/CMakeLists.txt +++ b/slsSupportLib/CMakeLists.txt @@ -43,21 +43,28 @@ if(result) endif() target_include_directories(slsSupportLib PUBLIC - ${ZeroMQ_INCLUDE_DIRS} "$" "$" ) +target_include_directories(slsSupportLib PRIVATE + ${ZeroMQ_INCLUDE_DIRS} +) + + set_target_properties(slsSupportLib PROPERTIES LIBRARY_OUTPUT_NAME SlsSupport LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin PUBLIC_HEADER "${PUBLICHEADERS}" ) +message(${ZeroMQ_LIBRARIES}) + target_link_libraries(slsSupportLib slsProjectOptions slsProjectWarnings - ${ZeroMQ_LIBRARIES} + # ${ZeroMQ_LIBRARIES} + zmq rapidjson) if (SLS_USE_TESTS) diff --git a/slsSupportLib/include/ZmqSocket.h b/slsSupportLib/include/ZmqSocket.h index effa9164b..29fa36c53 100755 --- a/slsSupportLib/include/ZmqSocket.h +++ b/slsSupportLib/include/ZmqSocket.h @@ -7,7 +7,7 @@ *@short functions to open/close zmq sockets */ -#include "ansi.h" + #include "sls_detector_exceptions.h" #include //inet_ntoa @@ -19,9 +19,8 @@ #include //usleep in some machines #include #include + using namespace rapidjson; - - #define MAX_STR_LENGTH 1000 // #define ZMQ_DETAIL diff --git a/slsSupportLib/include/sls_detector_defs.h b/slsSupportLib/include/sls_detector_defs.h index 48cc39268..e9196b1c4 100755 --- a/slsSupportLib/include/sls_detector_defs.h +++ b/slsSupportLib/include/sls_detector_defs.h @@ -14,8 +14,6 @@ #define __cplusplus #endif -#include "ansi.h" - #ifdef __cplusplus //C++ includes #include "sls_detector_exceptions.h"