allow to enable/disable Qt based tools.
This commit is contained in:
parent
b2850d015c
commit
b840bd022b
@ -8,6 +8,7 @@ option(nexus "build optional NeXus support. Needed for ISIS" OFF)
|
|||||||
option(ASlibs "build optional ASlibs" OFF)
|
option(ASlibs "build optional ASlibs" OFF)
|
||||||
option(BMWlibs "build optional BMWlibs" OFF)
|
option(BMWlibs "build optional BMWlibs" OFF)
|
||||||
option(BNMRlibs "build optional beta-NMR libs" OFF)
|
option(BNMRlibs "build optional beta-NMR libs" OFF)
|
||||||
|
option(qt_based_tools "try to install Qt based tools" ON)
|
||||||
|
|
||||||
#--- check for all the needed packages ----------------------------------------------------------
|
#--- check for all the needed packages ----------------------------------------------------------
|
||||||
|
|
||||||
@ -42,6 +43,7 @@ find_package(LibXml2 REQUIRED)
|
|||||||
find_package(OpenMP REQUIRED)
|
find_package(OpenMP REQUIRED)
|
||||||
|
|
||||||
#--- check for Qt -------------------------------------------------------------------------------
|
#--- check for Qt -------------------------------------------------------------------------------
|
||||||
|
if (qt_based_tools)
|
||||||
# first try Qt5
|
# first try Qt5
|
||||||
# Find the QtCore library
|
# Find the QtCore library
|
||||||
find_package(Qt5Core)
|
find_package(Qt5Core)
|
||||||
@ -72,6 +74,7 @@ if (NOT Qt4_FOUND AND NOT Qt5_FOUND)
|
|||||||
find_package(Qt3)
|
find_package(Qt3)
|
||||||
message("Qt3 found: ${QT_FOUND} //as35")
|
message("Qt3 found: ${QT_FOUND} //as35")
|
||||||
endif (NOT Qt4_FOUND AND NOT Qt5_FOUND)
|
endif (NOT Qt4_FOUND AND NOT Qt5_FOUND)
|
||||||
|
endif (qt_based_tools)
|
||||||
|
|
||||||
#--- if NeXus check also for HDF4, HDF5, and MXML -----------------------------------------------
|
#--- if NeXus check also for HDF4, HDF5, and MXML -----------------------------------------------
|
||||||
if (nexus)
|
if (nexus)
|
||||||
@ -158,27 +161,30 @@ else (BNMRlibs)
|
|||||||
message(" BNMRlibs : no")
|
message(" BNMRlibs : no")
|
||||||
endif (BNMRlibs)
|
endif (BNMRlibs)
|
||||||
|
|
||||||
message("")
|
if (qt_based_tools)
|
||||||
message(" Qt5 base tools:")
|
|
||||||
if (Qt5Core_FOUND)
|
if (Qt5Core_FOUND)
|
||||||
|
message("")
|
||||||
|
message(" Qt5 based tools:")
|
||||||
message(" musredit, musrStep, musrWiz, mupp : yes")
|
message(" musredit, musrStep, musrWiz, mupp : yes")
|
||||||
else (Qt5Core_FOUND)
|
|
||||||
message(" musredit, musrStep, musrWiz, mupp : no")
|
|
||||||
endif (Qt5Core_FOUND)
|
endif (Qt5Core_FOUND)
|
||||||
message("")
|
|
||||||
message(" Qt4 base tools (deprecated):")
|
|
||||||
if (Qt4_FOUND)
|
if (Qt4_FOUND)
|
||||||
message(" musredit : yes")
|
|
||||||
else (Qt4_FOUND)
|
|
||||||
message(" musredit : no")
|
|
||||||
endif (Qt4_FOUND)
|
|
||||||
message("")
|
message("")
|
||||||
message(" Qt3 base tools (outdated):")
|
message(" Qt4 based tools (deprecated):")
|
||||||
if (Qt3Core_FOUND)
|
message(" musredit : yes")
|
||||||
|
endif (Qt4_FOUND)
|
||||||
|
if (QT_FOUND)
|
||||||
|
message("")
|
||||||
|
message(" Qt3 based tools (outdated):")
|
||||||
message(" musrgui : yes")
|
message(" musrgui : yes")
|
||||||
else (Qt3Core_FOUND)
|
endif (QT_FOUND)
|
||||||
message(" musrgui : no")
|
if (NOT Qt5Core_FOUND AND NOT Qt4_FOUND AND NOT QT_FOUND)
|
||||||
endif (Qt3Core_FOUND)
|
message("")
|
||||||
|
message(" NO Qt based tools will be installed since Qt is not found or not installed on the system")
|
||||||
|
endif (NOT Qt5Core_FOUND AND NOT Qt4_FOUND AND NOT QT_FOUND)
|
||||||
|
else (qt_based_tools)
|
||||||
|
message("")
|
||||||
|
message(" Qt based tools (musredit, musrStep, musrWiz, mupp) have been disabled")
|
||||||
|
endif (qt_based_tools)
|
||||||
message("")
|
message("")
|
||||||
message(" Installation directories:")
|
message(" Installation directories:")
|
||||||
message(" -------------------------")
|
message(" -------------------------")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user