summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2012-03-28 17:04:32 (GMT)
committerChristian Mollekopf <chrigi_1@fastmail.fm>2012-03-28 17:04:32 (GMT)
commit76b16b1f12cea652d68e7af1167a3f36f61fa6b2 (patch)
tree67a76a062adb32c0f619a4dcf8ac60b2e05b9858
parentd573e985cf9c70ad52fd8cc2d23f62cdb6796237 (diff)
downloadkolab-utils-76b16b1f12cea652d68e7af1167a3f36f61fa6b2.tar.gz
Find includes
-rw-r--r--CMakeLists.txt13
1 files changed, 9 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3ba6cb0..19241f9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,16 +2,21 @@ project (upgradetool)
cmake_minimum_required(VERSION 2.6)
+find_path(KOLAB_DATA_DIR cmake/modules/FindKolabInternal.cmake HINTS ${_data_DIR} /usr/local/share/apps/)
+
+message("${KOLAB_DATA_DIR} ${_data_DIR}")
+set(CMAKE_MODULE_PATH "${KOLAB_DATA_DIR}/cmake/modules/")
+message("${CMAKE_MODULE_PATH}")
+find_package(KolabInternal REQUIRED)
+find_package(KolabKDELibraries REQUIRED)
+
find_package(Qt4 REQUIRED)
find_package(KDE4 REQUIRED)
find_library(KOLABXML_LIBRARY NAMES kolabxml)
find_library(KOLAB_LIBRARY NAMES kolab)
-include (../cmake/modules/FindKolabInternal.cmake)
-include (../cmake/modules/FindKDELibraries.cmake)
-
-include_directories(${QT_INCLUDES} ./)
+include_directories(${QT_INCLUDES} ./ ${KDEPIMLIBS_INCLUDE_DIRS})
set(COMMON_DEPENDENCIES ${KOLAB_LIBRARY} ${KOLABXML_LIBRARY} ${KCALCORE_LIBRARY} ${KDE4_KDECORE_LIBRARY} ${QT_QTCORE_LIBRARY} ${QT_QTXML_LIBRARY} ${KMIME_LIBRARY} ${QT_GUI_LIBRARY} ${KABC_LIBRARY})
add_executable(upgradetool upgradetool.cpp upgradeutilities.cpp)