export and include

This commit is contained in:
Erik Frojdh 2020-03-18 10:20:01 +01:00
parent ec9f8305e9
commit e7e201bd2a
7 changed files with 16 additions and 13 deletions

View File

@ -1,5 +1,5 @@
#include "SlsQt2DPlot.h"
#include "ansi.h"
// #include "ansi.h"
#include <qlist.h>
#include <qprinter.h>

View File

@ -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

View File

@ -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 <fcntl.h> // O_CREAT, O_TRUNC..
#include <iostream>
#include <sstream>
#include <stdio.h> // printf
// #include <stdio.h> // printf
#include <sys/mman.h> // shared memory
#include <sys/stat.h> // fstat
#include <unistd.h>

View File

@ -9,7 +9,6 @@
*/
#include "ansi.h"
#include "logger.h"
#include <string>

View File

@ -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)

View File

@ -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

View File

@ -14,8 +14,6 @@
#define __cplusplus
#endif
#include "ansi.h"
#ifdef __cplusplus
//C++ includes
#include "sls_detector_exceptions.h"