Set link directories properly
authorHong Jen Yee (PCMan) <pcman.tw@gmail.com>
Thu, 8 May 2014 15:59:32 +0000 (23:59 +0800)
committerHong Jen Yee (PCMan) <pcman.tw@gmail.com>
Thu, 8 May 2014 15:59:32 +0000 (23:59 +0800)
CMakeLists.txt
cmake/lxqt-config.cmake.in
cmake/lxqt_use.cmake

index 1456a67..63b196a 100644 (file)
@@ -131,7 +131,6 @@ find_package(X11 REQUIRED QUIET)
 find_package(QTXDG REQUIRED QUIET)
 include(${QTXDG_USE_FILE})
 
-
 include_directories (
     ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}
     ${QT_QTCORE_INCLUDE_DIR} ${QT_QTGUI_INCLUDE_DIR} ${QT_QTDBUS_INCLUDE_DIR}
index 7e3770c..98ab9ac 100644 (file)
@@ -8,6 +8,8 @@
 #
 #  LXQT_INCLUDE_DIRS  - The lxqt and the Qt include directory, for use with INCLUDE_DIRECTORIES()
 #
+#  LXQT_LIBRARY_DIRS  - The lxqt and the Qt library directories
+#
 #  LXQT_LIBRARIES     - The libraries needed to use lxqt
 #
 #  LXQT_SHARE_DIR     - This allows to install and read the configs from non-standard locations
@@ -62,6 +64,8 @@ set(LXQT_ETC_XDG_DIR   @LXQT_ETC_XDG_DIR@)
 set(LXQT_INCLUDE_DIR   @LXQT_INCLUDE_DIR@)
 set(LXQT_LIBRARY       lxqt)
 
+set(LXQT_LIBRARY_DIRS  @CMAKE_INSTALL_PREFIX@/@LIB_INSTALL_DIR@)
+
 set(LXQT_LIBRARIES     ${LXQT_LIBRARY} )
 set(LXQT_INCLUDE_DIRS  ${LXQT_INCLUDE_DIR} )
 set(LXQT_USE_FILE      ${CMAKE_CURRENT_LIST_DIR}/lxqt_use.cmake)
index 64bf5e5..eb88b3e 100644 (file)
@@ -38,6 +38,8 @@
 
 include_directories(${LXQT_INCLUDE_DIRS})
 
+link_directories(${LXQT_LIBRARY_DIRS})
+
 #cmake_policy(SET CMP0005 NEW)
 add_definitions(-DLXQT_SHARE_DIR=\"${LXQT_SHARE_DIR}\")
 add_definitions(-DLXQT_ETC_XDG_DIR=\"${LXQT_ETC_XDG_DIR}\")