mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-21 11:20:04 +02:00
Merge branch 'developer' into settingsfile
This commit is contained in:
commit
db8616fcb3
@ -46,6 +46,7 @@ option(SLS_BUILD_DOCS "docs" OFF)
|
|||||||
option(SLS_BUILD_EXAMPLES "examples" OFF)
|
option(SLS_BUILD_EXAMPLES "examples" OFF)
|
||||||
option(SLS_TUNE_LOCAL "tune to local machine" OFF)
|
option(SLS_TUNE_LOCAL "tune to local machine" OFF)
|
||||||
option(SLS_DEVEL_HEADERS "install headers for devel" OFF)
|
option(SLS_DEVEL_HEADERS "install headers for devel" OFF)
|
||||||
|
option(SLS_USE_MOENCH "compile zmq and post processing for Moench" OFF)
|
||||||
|
|
||||||
# set(ClangFormat_BIN_NAME clang-format)
|
# set(ClangFormat_BIN_NAME clang-format)
|
||||||
set(ClangFormat_EXCLUDE_PATTERNS "build/"
|
set(ClangFormat_EXCLUDE_PATTERNS "build/"
|
||||||
@ -229,6 +230,11 @@ if(SLS_BUILD_DOCS)
|
|||||||
add_subdirectory(docs)
|
add_subdirectory(docs)
|
||||||
endif(SLS_BUILD_DOCS)
|
endif(SLS_BUILD_DOCS)
|
||||||
|
|
||||||
|
|
||||||
|
if(SLS_USE_MOENCH)
|
||||||
|
add_subdirectory(slsDetectorCalibration/moenchExecutables)
|
||||||
|
endif(SLS_USE_MOENCH)
|
||||||
|
|
||||||
if(SLS_MASTER_PROJECT)
|
if(SLS_MASTER_PROJECT)
|
||||||
# Set install dir CMake packages
|
# Set install dir CMake packages
|
||||||
set(CMAKE_INSTALL_DIR "share/cmake/${PROJECT_NAME}")
|
set(CMAKE_INSTALL_DIR "share/cmake/${PROJECT_NAME}")
|
||||||
|
16
cmk.sh
16
cmk.sh
@ -12,6 +12,7 @@ TESTS=0
|
|||||||
SIMULATOR=0
|
SIMULATOR=0
|
||||||
CTBGUI=0
|
CTBGUI=0
|
||||||
MANUALS=0
|
MANUALS=0
|
||||||
|
MOENCHZMQ=0
|
||||||
|
|
||||||
|
|
||||||
CLEAN=0
|
CLEAN=0
|
||||||
@ -20,7 +21,7 @@ CMAKE_PRE=""
|
|||||||
CMAKE_POST=""
|
CMAKE_POST=""
|
||||||
|
|
||||||
usage() { echo -e "
|
usage() { echo -e "
|
||||||
Usage: $0 [-c] [-b] [-p] [e] [t] [r] [g] [s] [u] [i] [m] [-h] [-d <HDF5 directory>] [-j] <Number of threads>
|
Usage: $0 [-c] [-b] [-p] [e] [t] [r] [g] [s] [u] [i] [m] [-h] [z] [-d <HDF5 directory>] [-j] <Number of threads>
|
||||||
-[no option]: only make
|
-[no option]: only make
|
||||||
-c: Clean
|
-c: Clean
|
||||||
-b: Builds/Rebuilds CMake files normal mode
|
-b: Builds/Rebuilds CMake files normal mode
|
||||||
@ -36,6 +37,7 @@ Usage: $0 [-c] [-b] [-p] [e] [t] [r] [g] [s] [u] [i] [m] [-h] [-d <HDF5 director
|
|||||||
-e: Debug mode
|
-e: Debug mode
|
||||||
-i: Builds tests
|
-i: Builds tests
|
||||||
-m: Manuals
|
-m: Manuals
|
||||||
|
-z: Moench zmq processor
|
||||||
|
|
||||||
Rebuild when you switch to a new build and compile in parallel:
|
Rebuild when you switch to a new build and compile in parallel:
|
||||||
./cmk.sh -bj5
|
./cmk.sh -bj5
|
||||||
@ -71,7 +73,7 @@ For rebuilding only certain sections
|
|||||||
|
|
||||||
" ; exit 1; }
|
" ; exit 1; }
|
||||||
|
|
||||||
while getopts ":bpchd:j:trgeisum" opt ; do
|
while getopts ":bpchd:j:trgeisumz" opt ; do
|
||||||
case $opt in
|
case $opt in
|
||||||
b)
|
b)
|
||||||
echo "Building of CMake files Required"
|
echo "Building of CMake files Required"
|
||||||
@ -130,6 +132,10 @@ while getopts ":bpchd:j:trgeisum" opt ; do
|
|||||||
echo "Compiling Manuals"
|
echo "Compiling Manuals"
|
||||||
MANUALS=1
|
MANUALS=1
|
||||||
;;
|
;;
|
||||||
|
z)
|
||||||
|
echo "Compiling Moench Zmq Processor"
|
||||||
|
MOENCHZMQ=1
|
||||||
|
;;
|
||||||
u)
|
u)
|
||||||
echo "Compiling Options: Chip Test Gui"
|
echo "Compiling Options: Chip Test Gui"
|
||||||
CTBGUI=1
|
CTBGUI=1
|
||||||
@ -210,6 +216,12 @@ if [ $MANUALS -eq 1 ]; then
|
|||||||
echo "Manuals Option enabled"
|
echo "Manuals Option enabled"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#Moench zmq processor
|
||||||
|
if [ $MOENCHZMQ -eq 1 ]; then
|
||||||
|
CMAKE_POST+=" -DSLS_USE_MOENCH=ON "
|
||||||
|
echo "Moench Zmq Processor Option enabled"
|
||||||
|
fi
|
||||||
|
|
||||||
#Chip Test Gui
|
#Chip Test Gui
|
||||||
if [ $CTBGUI -eq 1 ]; then
|
if [ $CTBGUI -eq 1 ]; then
|
||||||
CMAKE_POST+=" -DSLS_USE_CTBGUI=ON "
|
CMAKE_POST+=" -DSLS_USE_CTBGUI=ON "
|
||||||
|
39
slsDetectorCalibration/moenchExecutables/CMakeLists.txt
Normal file
39
slsDetectorCalibration/moenchExecutables/CMakeLists.txt
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
|
||||||
|
|
||||||
|
#Moench ZMQ
|
||||||
|
add_executable(moenchZmqProcess moenchZmqProcess.cpp ../tiffIO.cpp)
|
||||||
|
add_compile_definitions(moenchZmqProcess NEWZMQ INTERP)
|
||||||
|
|
||||||
|
#Moench04 ZMQ
|
||||||
|
add_executable(moench04ZmqProcess moenchZmqProcess.cpp ../tiffIO.cpp)
|
||||||
|
add_compile_definitions(moenchZmqProcess NEWZMQ INTERP MOENCH04)
|
||||||
|
|
||||||
|
|
||||||
|
#Both executables should have the same includes and output dirs
|
||||||
|
set(MOENCH_EXECUTABLES "moenchZmqProcess" "moench04ZmqProcess")
|
||||||
|
|
||||||
|
foreach(exe ${MOENCH_EXECUTABLES})
|
||||||
|
#TODO! At a later stage clean up include dirs and have a proper lib
|
||||||
|
target_include_directories(${exe} PRIVATE
|
||||||
|
../
|
||||||
|
../dataStructures
|
||||||
|
../interpolations
|
||||||
|
../../slsReceiverSoftware/include/
|
||||||
|
)
|
||||||
|
|
||||||
|
target_link_libraries(${exe}
|
||||||
|
PUBLIC
|
||||||
|
slsSupportLib
|
||||||
|
${ZeroMQ_LIBRARIES}
|
||||||
|
pthread
|
||||||
|
tiff
|
||||||
|
|
||||||
|
PRIVATE
|
||||||
|
slsProjectWarnings
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
set_target_properties(${exe} PROPERTIES
|
||||||
|
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||||
|
)
|
||||||
|
endforeach(exe ${MOENCH_EXECUTABLES})
|
@ -75,11 +75,9 @@ target_link_libraries(slsSupportLib
|
|||||||
slsProjectOptions
|
slsProjectOptions
|
||||||
# ${ZeroMQ_LIBRARIES}
|
# ${ZeroMQ_LIBRARIES}
|
||||||
zmq
|
zmq
|
||||||
PRIVATE
|
|
||||||
|
|
||||||
slsProjectWarnings
|
|
||||||
PUBLIC
|
|
||||||
rapidjson
|
rapidjson
|
||||||
|
PRIVATE
|
||||||
|
slsProjectWarnings
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user