mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 18:17:59 +02:00
Added sls_detector_process executable for acquire blocking on zmq
This commit is contained in:
@ -54,6 +54,21 @@ set_target_properties(sls_detector_acquire PROPERTIES
|
||||
COMPILE_DEFINITIONS READOUT=1
|
||||
)
|
||||
|
||||
add_executable(sls_detector_process
|
||||
${SOURCES}
|
||||
)
|
||||
target_link_libraries(sls_detector_process
|
||||
slsDetectorShared
|
||||
pthread
|
||||
zmq
|
||||
rt
|
||||
)
|
||||
set_target_properties(sls_detector_process PROPERTIES
|
||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||
COMPILE_DEFINITIONS READOUT=1
|
||||
COMPILE_DEFINITIONS PROCESS=1
|
||||
)
|
||||
|
||||
add_executable(sls_detector_help
|
||||
${SOURCES}
|
||||
)
|
||||
|
@ -24,7 +24,7 @@ all: clients
|
||||
|
||||
nonstatic: clients
|
||||
|
||||
clients: builddir lib $(DESTDIR)/sls_detector_put $(DESTDIR)/sls_detector_get $(DESTDIR)/sls_detector_acquire $(DESTDIR)/sls_detector_help
|
||||
clients: builddir lib $(DESTDIR)/sls_detector_put $(DESTDIR)/sls_detector_get $(DESTDIR)/sls_detector_acquire $(DESTDIR)/sls_detector_help $(DESTDIR)/sls_detector_process
|
||||
|
||||
static_clients: builddir lib $(DESTDIR)/ssls_detector_put $(DESTDIR)/ssls_detector_get $(DESTDIR)/ssls_detector_acquire $(DESTDIR)/ssls_detector_help
|
||||
|
||||
@ -89,6 +89,13 @@ $(DESTDIR)/sls_detector_acquire: $(SRC_CLNT) $(DESTDIR)/libSlsDetector.so $(DEST
|
||||
$(CXX) -o $(BIN)/sls_detector_acquire $(SRC_CLNT) $(FLAGS) $(INCLUDES) -DREADOUT $(LIBS) $(LDFLAG)
|
||||
$(shell test -d $(DESTDIR) || mkdir -p $(DESTDIR))
|
||||
|
||||
$(DESTDIR)/sls_detector_process: $(SRC_CLNT) $(DESTDIR)/libSlsDetector.so $(DESTDIR)/libSlsDetector.a
|
||||
$(call colorecho,"#######################################")
|
||||
$(call colorecho,"# Compiling sls_detector_process #")
|
||||
$(call colorecho,"#######################################")
|
||||
$(CXX) -o $(BIN)/sls_detector_process $(SRC_CLNT) $(FLAGS) $(INCLUDES) -DREADOUT $(LIBS) $(LDFLAG) -DPROCESS
|
||||
$(shell test -d $(DESTDIR) || mkdir -p $(DESTDIR))
|
||||
|
||||
$(DESTDIR)/sls_detector_help: $(SRC_CLNT) $(DESTDIR)/libSlsDetector.so $(DESTDIR)/libSlsDetector.a
|
||||
$(call colorecho,"#######################################")
|
||||
$(call colorecho,"# Compiling sls_detector_help #")
|
||||
|
@ -4,6 +4,10 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
using namespace std;
|
||||
#ifdef PROCESS
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
||||
@ -28,6 +32,10 @@ int main(int argc, char *argv[])
|
||||
#ifdef READOUT
|
||||
int action=slsDetectorDefs::READOUT_ACTION;
|
||||
#endif
|
||||
|
||||
#ifdef PROCESS
|
||||
int action=slsDetectorDefs::PROCESS_ACTION;
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef HELP
|
||||
@ -37,9 +45,11 @@ int main(int argc, char *argv[])
|
||||
multiSlsDetectorClient *cl;
|
||||
if (argc>1)
|
||||
cl=new multiSlsDetectorClient(argc-1, argv+1, action);
|
||||
else
|
||||
else {
|
||||
cl=new multiSlsDetectorClient(argc-1, argv, action);
|
||||
|
||||
|
||||
}
|
||||
delete cl;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user