forked from kelvie/basket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
73 lines (56 loc) · 1.98 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
cmake_minimum_required(VERSION 2.6)
set(BASKET_DISABLE_GPG "0" CACHE BOOL "Disables GPG Support")
find_package(X11 REQUIRED)
find_package(KDE4 REQUIRED)
find_package(QImageBlitz REQUIRED)
IF(NOT BASKET_DISABLE_GPG)
find_package(Gpgme REQUIRED)
find_package(Gpgmepp REQUIRED)
ENDIF(NOT BASKET_DISABLE_GPG)
find_package(Soprano)
find_package(Nepomuk)
find_package(SharedDesktopOntologies)
# libgit2
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
find_package(Libgit2)
IF(LIBGIT2_FOUND)
include_directories(${LIBGIT2_INCLUDE_DIR})
add_definitions(-DWITH_LIBGIT2)
ELSE(LIBGIT2_FOUND)
message("libgit2 not found, configuring without")
ENDIF(LIBGIT2_FOUND)
if (BUILD_KPARTS)
find_package(KdepimLibs REQUIRED)
include_directories(${KDEPIMLIBS_INCLUDE_DIRS})
endif (BUILD_KPARTS)
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
include(KDE4Defaults)
include(MacroLibrary)
IF(GPGME_FOUND)
SET(HAVE_LIBGPGME 1)
SET(LARGEFILE_SOURCE_1)
ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64)
ELSE(GPGME_FOUND)
IF (BASKET_DISABLE_GPG)
MESSAGE("GPG disabled, configuring without")
ELSE (BASKET_DISABLE_GPG)
MESSAGE("GPG not found, configuring without")
ENDIF (BASKET_DISABLE_GPG)
ENDIF(GPGME_FOUND)
IF(SHAREDDESKTOPONTOLOGIES_FOUND AND SOPRANO_FOUND AND NEPOMUK_FOUND)
SET(HAVE_NEPOMUK 1)
ELSE(SHAREDDESKTOPONTOLOGIES_FOUND AND SOPRANO_FOUND AND NEPOMUK_FOUND)
MESSAGE("Soprano and/or Nepomuk not found, configuring without")
ENDIF(SHAREDDESKTOPONTOLOGIES_FOUND AND SOPRANO_FOUND AND NEPOMUK_FOUND)
#TODO: find meinproc
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h )
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
include_directories(${KDE4_INCLUDES} ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} ${X11_INCLUDES} )
add_subdirectory(doc)
add_subdirectory(src)
add_subdirectory(po)
add_subdirectory(tags)
add_subdirectory(welcome)
add_subdirectory(backgrounds)
add_subdirectory(images)
add_subdirectory(file-integration)