7e3770c70373c8faa268a0fae84f1170b0593a6b
[lxde/liblxqt.git] / cmake / lxqt-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/lxqt 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 #   lxqt_translate_ts(QM_FILES
41 #     SOURCES
42 #        ${H_FILES}
43 #        ${CPP_FILES}
44 #        ${UI_FILES}
45 #   )
46 #   lxqt_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_MAJOR_VERSION @LXQT_MAJOR_VERSION@)
55 set(LXQT_MINOR_VERSION @LXQT_MINOR_VERSION@)
56 set(LXQT_PATCH_VERSION @LXQT_PATCH_VERSION@)
57 set(LXQT_VERSION       @LXQT_VERSION@)
58
59 set(LXQT_SHARE_DIR     @LXQT_SHARE_DIR@)
60 set(LXQT_TRANSLATIONS_DIR @LXQT_TRANSLATIONS_DIR@)
61 set(LXQT_ETC_XDG_DIR   @LXQT_ETC_XDG_DIR@)
62 set(LXQT_INCLUDE_DIR   @LXQT_INCLUDE_DIR@)
63 set(LXQT_LIBRARY       lxqt)
64
65 set(LXQT_LIBRARIES     ${LXQT_LIBRARY} )
66 set(LXQT_INCLUDE_DIRS  ${LXQT_INCLUDE_DIR} )
67 set(LXQT_USE_FILE      ${CMAKE_CURRENT_LIST_DIR}/lxqt_use.cmake)
68 set(LXQT_FOUND         1)
69
70 # for backward compatability ----->
71 #set(LXQT_SHARE_DIR     ${})
72 #set(LXQT_ETC_XDG_DIR   ${})
73 #set(LXQT_INCLUDE_DIR   ${LXQT_INCLUDE_DIR})
74 #set(LXQT_INCLUDE_DIRS  ${LXQT_INCLUDE_DIRS})
75 #set(LXQT_LIBRARY       ${LXQT_LIBRARY})
76 # for backward compatability <-----
77
78 mark_as_advanced(LXQT_LIBRARY LXQT_INCLUDE_DIR)
79
80
81 #************************************************
82 # LXQT_USE_MOUNT
83 #
84 #if (LXQT_USE_MOUNT)
85 #    include(${CMAKE_CURRENT_LIST_DIR}/lxqtmount-config.cmake)
86 #    set(LXQT_INCLUDE_DIRS       ${LXQT_INCLUDE_DIRS} ${LXQTMOUNT_INCLUDE_DIR})
87 #    set(LXQT_LIBRARIES          ${LXQT_LIBRARIES}    ${LXQTMOUNT_LIBRARY})
88
89 #endif(LXQT_USE_MOUNT)
90
91
92 #************************************************
93 # LXQT_USE_GLOBALKEYCLIENT
94 #
95 #if (LXQT_USE_GLOBALKEYCLIENT)
96 #    include(${CMAKE_CURRENT_LIST_DIR}/lxqtglobalkeyclient-config.cmake)
97 #    set(LXQT_INCLUDE_DIRS       ${LXQT_INCLUDE_DIRS} ${LXQTGLOBALKEYCLIENT_INCLUDE_DIR})
98 #    set(LXQT_LIBRARIES          ${LXQT_LIBRARIES}    ${LXQTGLOBALKEYCLIENT_LIBRARIES})
99
100 #endif(LXQT_USE_GLOBALKEYCLIENT)