You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
liblxqt-packaging/cmake/lxqtX-config.cmake.in

83 lines
3.1 KiB

# - Find the lxqt include and library dirs and define a some macros
#
# The module defines the following variables
#
# LXQT_FOUND - Set to TRUE if all of the above has been found
#
# LXQT_INCLUDE_DIR - The lxqt include directory
#
# LXQT_INCLUDE_DIRS - The lxqt and the Qt include directory, for use with INCLUDE_DIRECTORIES()
#
# LXQT_LIBRARIES - The libraries needed to use lxqt
#
# 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/razor 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
#
# LXQT_USE_FILE - The variable LXQT_USE_FILE is set which is the path to a CMake file that
# can be included to compile lxqt applications and libraries. It sets up
# the compilation environment for include directories and populates a
# LXQT_LIBRARIES variable.
#
# When using the components argument, LXQT_USE_* variables are automatically set
# for the LXQT_USE_FILE to pick up. If one wishes to manually set them, the
# available ones to set include:
# LXQT_USE_MOUNT
# LXQT_USE_GLOBAL_KEY_CLIENT
#
# Typical usage could be something like:
# set(LXQT_USE_MOUNT 1)
# find_package(LXQT REQUIRED)
# include(${LXQT_USE_FILE})
#
# razor_translate_ts(QM_FILES
# SOURCES
# ${H_FILES}
# ${CPP_FILES}
# ${UI_FILES}
# )
# razor_translate_desktop(DESKTOP_FILES
# SOURCES
# ${DESKTOP_FILES_IN}
# )
#
# add_executable(myexe main.cpp)
# target_link_libraries(myexe $LXQT_LIBRARIES})
set(LXQT_USEQT@LXQT_QT_VERSION@ ON)
set(LXQT_QT_VERSION @LXQT_QT_VERSION@)
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_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_ETC_XDG_DIR @LXQT_ETC_XDG_DIR@)
set(LXQT_CMAKE_MODULES_DIR @CFG_LXQT_CMAKE_MODULES_DIR@)
set(LXQT_INCLUDE_DIR @CFG_LXQT_INCLUDE_DIR@)
set(LXQT_INCLUDE_DIRS @CFG_LXQT_INCLUDE_DIR@)
set(LXQT_LIBRARY @CFG_LXQT_LIBRARY@)
set(LXQT_LIBRARIES @CFG_LXQT_LIBRARY@)
set(LXQT_USE_FILE @CFG_LXQT_USE_FILE@)
set(LXQT_FOUND 1)
set(LXQT@LXQT_QT_VERSION@_FOUND 1)
include(@CFG_LXQT_TARGETS_FILE@)
mark_as_advanced(LXQT_LIBRARY LXQT_INCLUDE_DIR)