mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 10:07:59 +02:00
export and include
This commit is contained in:
@ -43,21 +43,28 @@ if(result)
|
||||
endif()
|
||||
|
||||
target_include_directories(slsSupportLib PUBLIC
|
||||
${ZeroMQ_INCLUDE_DIRS}
|
||||
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
|
||||
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>"
|
||||
)
|
||||
|
||||
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)
|
||||
|
@ -7,7 +7,7 @@
|
||||
*@short functions to open/close zmq sockets
|
||||
*/
|
||||
|
||||
#include "ansi.h"
|
||||
|
||||
#include "sls_detector_exceptions.h"
|
||||
|
||||
#include <arpa/inet.h> //inet_ntoa
|
||||
@ -19,9 +19,8 @@
|
||||
#include <unistd.h> //usleep in some machines
|
||||
#include <vector>
|
||||
#include <zmq.h>
|
||||
|
||||
using namespace rapidjson;
|
||||
|
||||
|
||||
#define MAX_STR_LENGTH 1000
|
||||
|
||||
// #define ZMQ_DETAIL
|
||||
|
@ -14,8 +14,6 @@
|
||||
#define __cplusplus
|
||||
#endif
|
||||
|
||||
#include "ansi.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
//C++ includes
|
||||
#include "sls_detector_exceptions.h"
|
||||
|
Reference in New Issue
Block a user