Set link directories properly
[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_LIBRARY_DIRS  - The lxqt and the Qt library directories
12 #
13 #  LXQT_LIBRARIES     - The libraries needed to use lxqt
14 #
15 #  LXQT_SHARE_DIR     - This allows to install and read the configs from non-standard locations
16 #
17 #  LXQT_TRANSLATIONS_DIR - The default translations directory
18 #
19 #  LXQT_ETC_XDG_DIR   - XDG standards expects system-wide configuration files in the
20 #                        /etc/xdg/lxqt location. Unfortunately QSettings we are using internally
21 #                        can be overriden in the Qt compilation time to use different path for
22 #                        system-wide configs. (for example configure ... -sysconfdir /etc/settings ...)
23 #                        This path can be found calling Qt4's qmake:
24 #                             qmake -query QT_INSTALL_CONFIGURATION
25 #
26 # LXQT_USE_FILE       - The variable LXQT_USE_FILE is set which is the path to a CMake file that
27 #                        can be included to compile lxqt applications and libraries. It sets up
28 #                        the compilation environment for include directories and populates a
29 #                        LXQT_LIBRARIES variable.
30 #
31 # When using the components argument, LXQT_USE_* variables are automatically set
32 # for the LXQT_USE_FILE to pick up.  If one wishes to manually set them, the
33 # available ones to set include:
34 #               LXQT_USE_MOUNT
35 #               LXQT_USE_GLOBAL_KEY_CLIENT
36 #
37 # Typical usage could be something like:
38 #   set(LXQT_USE_MOUNT 1)
39 #   find_package(LXQT REQUIRED)
40 #   include(${LXQT_USE_FILE})
41 #
42 #   lxqt_translate_ts(QM_FILES
43 #     SOURCES
44 #        ${H_FILES}
45 #        ${CPP_FILES}
46 #        ${UI_FILES}
47 #   )
48 #   lxqt_translate_desktop(DESKTOP_FILES
49 #     SOURCES
50 #        ${DESKTOP_FILES_IN}
51 #  )
52 #
53 #   add_executable(myexe main.cpp)
54 #   target_link_libraries(myexe $LXQT_LIBRARIES})
55
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_SHARE_DIR     @LXQT_SHARE_DIR@)
62 set(LXQT_TRANSLATIONS_DIR @LXQT_TRANSLATIONS_DIR@)
63 set(LXQT_ETC_XDG_DIR   @LXQT_ETC_XDG_DIR@)
64 set(LXQT_INCLUDE_DIR   @LXQT_INCLUDE_DIR@)
65 set(LXQT_LIBRARY       lxqt)
66
67 set(LXQT_LIBRARY_DIRS  @CMAKE_INSTALL_PREFIX@/@LIB_INSTALL_DIR@)
68
69 set(LXQT_LIBRARIES     ${LXQT_LIBRARY} )
70 set(LXQT_INCLUDE_DIRS  ${LXQT_INCLUDE_DIR} )
71 set(LXQT_USE_FILE      ${CMAKE_CURRENT_LIST_DIR}/lxqt_use.cmake)
72 set(LXQT_FOUND         1)
73
74 # for backward compatability ----->
75 #set(LXQT_SHARE_DIR     ${})
76 #set(LXQT_ETC_XDG_DIR   ${})
77 #set(LXQT_INCLUDE_DIR   ${LXQT_INCLUDE_DIR})
78 #set(LXQT_INCLUDE_DIRS  ${LXQT_INCLUDE_DIRS})
79 #set(LXQT_LIBRARY       ${LXQT_LIBRARY})
80 # for backward compatability <-----
81
82 mark_as_advanced(LXQT_LIBRARY LXQT_INCLUDE_DIR)
83
84
85 #************************************************
86 # LXQT_USE_MOUNT
87 #
88 #if (LXQT_USE_MOUNT)
89 #    include(${CMAKE_CURRENT_LIST_DIR}/lxqtmount-config.cmake)
90 #    set(LXQT_INCLUDE_DIRS       ${LXQT_INCLUDE_DIRS} ${LXQTMOUNT_INCLUDE_DIR})
91 #    set(LXQT_LIBRARIES          ${LXQT_LIBRARIES}    ${LXQTMOUNT_LIBRARY})
92
93 #endif(LXQT_USE_MOUNT)
94
95
96 #************************************************
97 # LXQT_USE_GLOBALKEYCLIENT
98 #
99 #if (LXQT_USE_GLOBALKEYCLIENT)
100 #    include(${CMAKE_CURRENT_LIST_DIR}/lxqtglobalkeyclient-config.cmake)
101 #    set(LXQT_INCLUDE_DIRS       ${LXQT_INCLUDE_DIRS} ${LXQTGLOBALKEYCLIENT_INCLUDE_DIR})
102 #    set(LXQT_LIBRARIES          ${LXQT_LIBRARIES}    ${LXQTGLOBALKEYCLIENT_LIBRARIES})
103
104 #endif(LXQT_USE_GLOBALKEYCLIENT)