* Added build dependency qtbase5-dev * Added dependency cmake (>= 3.0.2) * Switch Architecture to any againubuntu/cosmic debian/0.2.0
parent
1806c36655
commit
89e1d639b9
@ -0,0 +1,26 @@
|
|||||||
|
# XDG standards expects system-wide configuration files in the /etc/xdg/lxqt location.
|
||||||
|
# Unfortunately QSettings we are using internally can be overriden in the Qt compilation
|
||||||
|
# time to use different path for system-wide configs. (for example configure ... -sysconfdir /etc/settings ...)
|
||||||
|
# This path can be found calling Qt4's qmake:
|
||||||
|
# qmake -query QT_INSTALL_CONFIGURATION
|
||||||
|
#
|
||||||
|
|
||||||
|
find_package(Qt5Core REQUIRED)
|
||||||
|
|
||||||
|
if(NOT DEFINED LXQT_ETC_XDG_DIR)
|
||||||
|
get_target_property(QT_QMAKE_EXECUTABLE ${Qt5Core_QMAKE_EXECUTABLE} IMPORTED_LOCATION)
|
||||||
|
message(STATUS "${QT_QMAKE_EXECUTABLE}")
|
||||||
|
|
||||||
|
if(NOT QT_QMAKE_EXECUTABLE)
|
||||||
|
message(FATAL_ERROR "LXQT_ETC_XDG_DIR: qmake executable not found (included before qt was configured?)")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
execute_process(COMMAND ${QT_QMAKE_EXECUTABLE} -query QT_INSTALL_CONFIGURATION
|
||||||
|
OUTPUT_VARIABLE LXQT_ETC_XDG_DIR
|
||||||
|
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||||
|
|
||||||
|
message(STATUS "LXQT_ETC_XDG_DIR autodetected as '${LXQT_ETC_XDG_DIR}'")
|
||||||
|
message(STATUS "You can set it manually with -DLXQT_ETC_XDG_DIR=<value>")
|
||||||
|
message(STATUS "")
|
||||||
|
endif ()
|
||||||
|
|
@ -0,0 +1,40 @@
|
|||||||
|
# The module defines the following variables
|
||||||
|
#
|
||||||
|
# LXQT_SHARE_DIR - This allows to install and read the configs from non-standard locations
|
||||||
|
#
|
||||||
|
# LXQT_TRANSLATIONS_DIR - The default translations directory
|
||||||
|
#
|
||||||
|
# LXQT_ETC_XDG_DIR - XDG standards expects system-wide configuration files in the
|
||||||
|
# /etc/xdg/lxqt location. Unfortunately QSettings we are using internally
|
||||||
|
# can be overriden in the Qt compilation time to use different path for
|
||||||
|
# system-wide configs. (for example configure ... -sysconfdir /etc/settings ...)
|
||||||
|
# This path can be found calling Qt's qmake:
|
||||||
|
# qmake -query QT_INSTALL_CONFIGURATION
|
||||||
|
#
|
||||||
|
# LXQT_DATA_DIR - LXQt base directory relative to which data files should
|
||||||
|
# be searched.Defaults to CMAKE_INSTALL_FULL_DATADIR. It's
|
||||||
|
# added to XDG_DATA_DIRS by the startlxqt script.
|
||||||
|
|
||||||
|
|
||||||
|
set(LXQT_MAJOR_VERSION "@LXQT_MAJOR_VERSION@")
|
||||||
|
set(LXQT_MINOR_VERSION "@LXQT_MINOR_VERSION@")
|
||||||
|
set(LXQT_PATCH_VERSION "@LXQT_PATCH_VERSION@")
|
||||||
|
set(LXQT_VERSION "@LXQT_VERSION@")
|
||||||
|
|
||||||
|
set(LXQT_LIBRARY_NAME "@LXQT_LIBRARY_NAME@")
|
||||||
|
set(LXQT_RELATIVE_SHARE_DIR "@LXQT_RELATIVE_SHARE_DIR@")
|
||||||
|
set(LXQT_SHARE_DIR "@LXQT_SHARE_DIR@")
|
||||||
|
set(LXQT_RELATIVE_TRANSLATIONS_DIR "@LXQT_RELATIVE_TRANSLATIONS_DIR@")
|
||||||
|
set(LXQT_TRANSLATIONS_DIR "@LXQT_TRANSLATIONS_DIR@")
|
||||||
|
set(LXQT_GRAPHICS_DIR "@LXQT_GRAPHICS_DIR@")
|
||||||
|
set(LXQT_ETC_XDG_DIR "@LXQT_ETC_XDG_DIR@")
|
||||||
|
set(LXQT_DATA_DIR "@LXQT_DATA_DIR@")
|
||||||
|
|
||||||
|
add_definitions("-DLXQT_RELATIVE_SHARE_DIR=\"${LXQT_RELATIVE_SHARE_DIR}\"")
|
||||||
|
add_definitions("-DLXQT_SHARE_DIR=\"${LXQT_SHARE_DIR}\"")
|
||||||
|
add_definitions("-DLXQT_RELATIVE_SHARE_TRANSLATIONS_DIR=\"${LXQT_RELATIVE_TRANSLATIONS_DIR}\"")
|
||||||
|
add_definitions("-DLXQT_SHARE_TRANSLATIONS_DIR=\"${LXQT_TRANSLATIONS_DIR}\"")
|
||||||
|
add_definitions("-DLXQT_GRAPHICS_DIR=\"${LXQT_GRAPHICS_DIR}\"")
|
||||||
|
add_definitions("-DLXQT_ETC_XDG_DIR=\"${LXQT_ETC_XDG_DIR}\"")
|
||||||
|
add_definitions("-DLXQT_DATA_DIR=\"${LXQT_DATA_DIR}\"")
|
||||||
|
add_definitions("-DLXQT_VERSION=\"${LXQT_VERSION}\"")
|
Loading…
Reference in new issue