mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-26 16:20:03 +02:00
Merge branch 'gui' of github.com:slsdetectorgroup/slsDetectorPackage into gui
This commit is contained in:
commit
5e6eb45f56
@ -125,8 +125,8 @@ install(TARGETS slsProjectOptions slsProjectWarnings rapidjson
|
|||||||
|
|
||||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||||
set(CMAKE_INSTALL_RPATH "$ORIGIN")
|
set(CMAKE_INSTALL_RPATH "$ORIGIN")
|
||||||
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
|
# set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
|
||||||
|
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
|
||||||
|
|
||||||
|
|
||||||
find_package(Doxygen)
|
find_package(Doxygen)
|
||||||
|
@ -51,26 +51,12 @@ set(HEADERS
|
|||||||
include/qTabDebugging.h
|
include/qTabDebugging.h
|
||||||
include/qTabDeveloper.h
|
include/qTabDeveloper.h
|
||||||
include/qTabMessages.h
|
include/qTabMessages.h
|
||||||
../slsDetectorSoftware/include
|
|
||||||
../slsSupportLib/include/versionAPI.h
|
|
||||||
../slsSupportLib/include/ServerSocket.h
|
|
||||||
../slsSupportLib/include/ServerInterface2.h
|
|
||||||
)
|
)
|
||||||
set(RESOURCES
|
set(RESOURCES
|
||||||
include/icons.qrc
|
include/icons.qrc
|
||||||
)
|
)
|
||||||
qt4_add_resources(RESOURCES_SRCS ${RESOURCES})
|
qt4_add_resources(RESOURCES_SRCS ${RESOURCES})
|
||||||
|
|
||||||
include_directories(
|
|
||||||
include
|
|
||||||
slsDetectorPlotting/include
|
|
||||||
../slsSupportLib/include
|
|
||||||
${QT_INCLUDE_DIR}
|
|
||||||
${QT_QTCORE_INCLUDE_DIR}
|
|
||||||
${QT_QTGUI_INCLUDE_DIR}
|
|
||||||
${QWT_INCLUDE_DIR}
|
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
|
||||||
)
|
|
||||||
|
|
||||||
add_definitions(
|
add_definitions(
|
||||||
-DPRINT_LOG #-DVERBOSE
|
-DPRINT_LOG #-DVERBOSE
|
||||||
@ -83,16 +69,22 @@ add_executable(slsDetectorGui
|
|||||||
${RESOURCES_SRCS}
|
${RESOURCES_SRCS}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
target_include_directories(slsDetectorGui PUBLIC
|
||||||
|
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
|
||||||
|
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/slsDetectorPlotting/include>"
|
||||||
|
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>"
|
||||||
|
"$<BUILD_INTERFACE:${QT_INCLUDE_DIR}>"
|
||||||
|
"$<BUILD_INTERFACE:${QT_QTCORE_INCLUDE_DIR}>"
|
||||||
|
"$<BUILD_INTERFACE:${QT_QTGUI_INCLUDE_DIR}>"
|
||||||
|
"$<BUILD_INTERFACE:${QWT_INCLUDE_DIR}>"
|
||||||
|
"$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>"
|
||||||
|
)
|
||||||
|
|
||||||
target_link_libraries(slsDetectorGui PUBLIC
|
target_link_libraries(slsDetectorGui PUBLIC
|
||||||
slsProjectOptions
|
|
||||||
slsProjectWarnings
|
|
||||||
slsSupportLib
|
|
||||||
slsDetectorShared
|
slsDetectorShared
|
||||||
${QT_QTCORE_LIBRARIES}
|
${QT_QTCORE_LIBRARIES}
|
||||||
${QT_QTGUI_LIBRARIES}
|
${QT_QTGUI_LIBRARIES}
|
||||||
${QWT_LIBRARIES}
|
${QWT_LIBRARIES}
|
||||||
${ZeroMQ_LIBRARIES}
|
|
||||||
rt
|
|
||||||
png
|
png
|
||||||
z
|
z
|
||||||
Qt4::QtOpenGL
|
Qt4::QtOpenGL
|
||||||
@ -103,4 +95,11 @@ set_target_properties(slsDetectorGui PROPERTIES
|
|||||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||||
)
|
)
|
||||||
|
|
||||||
install(TARGETS slsDetectorGui DESTINATION bin)
|
install(TARGETS slsDetectorGui
|
||||||
|
EXPORT "${TARGETS_EXPORT_NAME}"
|
||||||
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||||
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
|
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||||||
|
)
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#include "qDrawPlot.h"
|
#include "qDrawPlot.h"
|
||||||
|
|
||||||
#include "string_utils.h"
|
#include "string_utils.h"
|
||||||
|
#include <cmath>
|
||||||
#include <QStandardItemModel>
|
#include <QStandardItemModel>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user