fb74275d3910616aba4bfb9cc47a367982941f13
[lxde/liblxqt.git] / cmake / lxqtX-config.cmake.in
1 # - Find the lxqt include and library dirs and define a some macros
2 #
3 # The module defines the following variables
4 #
5 #  LXQT_FOUND         - Set to TRUE if all of the above has been found
6 #
7 #  LXQT_INCLUDE_DIR   - The lxqt include directory
8 #
9 #  LXQT_INCLUDE_DIRS  - The lxqt and the Qt include directory, for use with INCLUDE_DIRECTORIES()
10 #
11 #  LXQT_LIBRARIES     - The libraries needed to use lxqt
12 #
13 #  LXQT_SHARE_DIR     - This allows to install and read the configs from non-standard locations
14 #
15 #  LXQT_TRANSLATIONS_DIR - The default translations directory
16 #
17 #  LXQT_ETC_XDG_DIR   - XDG standards expects system-wide configuration files in the
18 #                        /etc/xdg/razor location. Unfortunately QSettings we are using internally
19 #                        can be overriden in the Qt compilation time to use different path for
20 #                        system-wide configs. (for example configure ... -sysconfdir /etc/settings ...)
21 #                        This path can be found calling Qt4's qmake:
22 #                             qmake -query QT_INSTALL_CONFIGURATION
23 #
24 # LXQT_USE_FILE       - The variable LXQT_USE_FILE is set which is the path to a CMake file that
25 #                        can be included to compile lxqt applications and libraries. It sets up
26 #                        the compilation environment for include directories and populates a
27 #                        LXQT_LIBRARIES variable.
28 #
29 # When using the components argument, LXQT_USE_* variables are automatically set
30 # for the LXQT_USE_FILE to pick up.  If one wishes to manually set them, the
31 # available ones to set include:
32 #               LXQT_USE_MOUNT
33 #               LXQT_USE_GLOBAL_KEY_CLIENT
34 #
35 # Typical usage could be something like:
36 #   set(LXQT_USE_MOUNT 1)
37 #   find_package(LXQT REQUIRED)
38 #   include(${LXQT_USE_FILE})
39 #
40 #   razor_translate_ts(QM_FILES
41 #     SOURCES
42 #        ${H_FILES}
43 #        ${CPP_FILES}
44 #        ${UI_FILES}
45 #   )
46 #   razor_translate_desktop(DESKTOP_FILES
47 #     SOURCES
48 #        ${DESKTOP_FILES_IN}
49 #  )
50 #
51 #   add_executable(myexe main.cpp)
52 #   target_link_libraries(myexe $LXQT_LIBRARIES})
53
54 set(LXQT_USEQT@LXQT_QT_VERSION@             ON)
55 set(LXQT_QT_VERSION         @LXQT_QT_VERSION@)
56 set(LXQT_MAJOR_VERSION      @LXQT_MAJOR_VERSION@)
57 set(LXQT_MINOR_VERSION      @LXQT_MINOR_VERSION@)
58 set(LXQT_PATCH_VERSION      @LXQT_PATCH_VERSION@)
59 set(LXQT_VERSION            @LXQT_VERSION@)
60
61 set(LXQT_RELATIVE_SHARE_DIR @LXQT_RELATIVE_SHARE_DIR@)
62 set(LXQT_SHARE_DIR          @LXQT_SHARE_DIR@)
63 set(LXQT_RELATIVE_TRANSLATIONS_DIR   @LXQT_RELATIVE_TRANSLATIONS_DIR@)
64 set(LXQT_TRANSLATIONS_DIR   @LXQT_TRANSLATIONS_DIR@)
65 set(LXQT_ETC_XDG_DIR        @LXQT_ETC_XDG_DIR@)
66
67 set(LXQT_INCLUDE_DIR        @CFG_LXQT_INCLUDE_DIR@)
68 set(LXQT_INCLUDE_DIRS       @CFG_LXQT_INCLUDE_DIR@)
69
70 set(LXQT_LIBRARY            @CFG_LXQT_LIBRARY@)
71 set(LXQT_LIBRARIES          @CFG_LXQT_LIBRARY@)
72
73 set(LXQT_USE_FILE           @CFG_LXQT_USE_FILE@)
74 set(LXQT_FOUND              1)
75 set(LXQT@LXQT_QT_VERSION@_FOUND             1)
76
77
78 include(@CFG_LXQT_TARGETS_FILE@)
79
80 mark_as_advanced(LXQT_LIBRARY LXQT_INCLUDE_DIR)
81