mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-25 07:40:03 +02:00
Merge branch 'developer' of github.com:slsdetectorgroup/slsDetectorPackage into developer
This commit is contained in:
commit
abfc0dc266
@ -64,18 +64,6 @@ check_ipo_supported(RESULT SLS_LTO_AVAILABLE)
|
|||||||
message(STATUS "SLS_LTO_AVAILABLE:" ${SLS_LTO_AVAILABLE})
|
message(STATUS "SLS_LTO_AVAILABLE:" ${SLS_LTO_AVAILABLE})
|
||||||
|
|
||||||
|
|
||||||
# # Use ld.gold if it is available and isn't disabled explicitly
|
|
||||||
# option(SLS_USE_LD_GOLD "Use GNU gold linker" ON)
|
|
||||||
# if (SLS_USE_LD_GOLD)
|
|
||||||
# execute_process(COMMAND ${CMAKE_C_COMPILER} -fuse-ld=gold -Wl,--version ERROR_QUIET OUTPUT_VARIABLE LD_VERSION)
|
|
||||||
# if ("${LD_VERSION}" MATCHES "GNU gold")
|
|
||||||
# set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=gold")
|
|
||||||
# set(CMAKE_STATIC_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=gold")
|
|
||||||
# set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=gold")
|
|
||||||
# else ()
|
|
||||||
# message(WARNING "GNU gold linker isn't available, using the default system linker.")
|
|
||||||
# endif ()
|
|
||||||
# endif ()
|
|
||||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||||
|
|
||||||
if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
||||||
@ -187,20 +175,12 @@ if (SLS_USE_TEXTCLIENT)
|
|||||||
add_subdirectory(slsDetectorSoftware)
|
add_subdirectory(slsDetectorSoftware)
|
||||||
endif (SLS_USE_TEXTCLIENT)
|
endif (SLS_USE_TEXTCLIENT)
|
||||||
|
|
||||||
|
|
||||||
if (SLS_USE_RECEIVER)
|
if (SLS_USE_RECEIVER)
|
||||||
if (SLS_USE_HDF5)
|
|
||||||
find_package(HDF5 1.10 COMPONENTS CXX REQUIRED)
|
|
||||||
endif (SLS_USE_HDF5)
|
|
||||||
add_subdirectory(slsReceiverSoftware)
|
add_subdirectory(slsReceiverSoftware)
|
||||||
endif (SLS_USE_RECEIVER)
|
endif (SLS_USE_RECEIVER)
|
||||||
|
|
||||||
if (SLS_USE_GUI)
|
if (SLS_USE_GUI)
|
||||||
find_package(Qt4 REQUIRED)
|
|
||||||
find_package(Qwt 6.1 REQUIRED)
|
|
||||||
if (QT4_FOUND AND QWT_FOUND)
|
|
||||||
add_subdirectory(slsDetectorGui)
|
add_subdirectory(slsDetectorGui)
|
||||||
endif()
|
|
||||||
endif (SLS_USE_GUI)
|
endif (SLS_USE_GUI)
|
||||||
|
|
||||||
if (SLS_USE_SIMULATOR)
|
if (SLS_USE_SIMULATOR)
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
set(CMAKE_AUTOMOC ON)
|
set(CMAKE_AUTOMOC ON)
|
||||||
|
|
||||||
|
find_package(Qt4 REQUIRED)
|
||||||
|
find_package(Qwt 6.1 REQUIRED)
|
||||||
find_package(PNG REQUIRED)
|
find_package(PNG REQUIRED)
|
||||||
find_package(ZLIB REQUIRED)
|
find_package(ZLIB REQUIRED)
|
||||||
|
|
||||||
|
@ -15,16 +15,15 @@ set(PUBLICHEADERS
|
|||||||
include/sls/Receiver.h
|
include/sls/Receiver.h
|
||||||
)
|
)
|
||||||
|
|
||||||
# HDF5
|
# HDF5 file writing
|
||||||
if (SLS_USE_HDF5)
|
if (SLS_USE_HDF5)
|
||||||
if (HDF5_FOUND)
|
find_package(HDF5 1.10 COMPONENTS CXX REQUIRED)
|
||||||
add_definitions(
|
add_definitions(
|
||||||
-DHDF5C ${HDF5_DEFINITIONS}
|
-DHDF5C ${HDF5_DEFINITIONS}
|
||||||
)
|
)
|
||||||
list (APPEND SOURCES
|
list (APPEND SOURCES
|
||||||
src/HDF5File.cpp
|
src/HDF5File.cpp
|
||||||
)
|
)
|
||||||
endif ()
|
|
||||||
endif (SLS_USE_HDF5)
|
endif (SLS_USE_HDF5)
|
||||||
|
|
||||||
# Create an object library to avoid building the library twice
|
# Create an object library to avoid building the library twice
|
||||||
|
Loading…
x
Reference in New Issue
Block a user