summaryrefslogtreecommitdiff
path: root/kdepimlibs/CMakeLists.txt
blob: 6f64de056cf484b6772a197d72be51badea28797 (plain)
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

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/kdepimlibs/cmake/modules")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/../kdecore/cmake/modules")
set(LIBCALENDARING_NOTES_PATH "${CMAKE_CURRENT_SOURCE_DIR}/kdepimlibs/akonadi/notes")
set(LIBCALENDARING_KIMAP_PATH "${CMAKE_CURRENT_SOURCE_DIR}/kdepimlibs/kimap")
set(LIBCALENDARING_KABC_PATH "${CMAKE_CURRENT_SOURCE_DIR}/kdepimlibs/kabc")
set(LIBCALENDARING_KCALCORE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/kdepimlibs/kcalcore")
set(LIBCALENDARING_KMIME_PATH "${CMAKE_CURRENT_SOURCE_DIR}/kdepimlibs/kmime")
set(LIBCALENDARING_KPIMUTILS_PATH "${CMAKE_CURRENT_SOURCE_DIR}/kdepimlibs/kpimutils")
set(LIBCALENDARING_KCALUTILS_PATH "${CMAKE_CURRENT_SOURCE_DIR}/kdepimlibs/kcalutils")

# only available from cmake-2.8.0
if(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 7)
    cmake_policy(SET CMP0012 NEW)
endif()

# only available from cmake-2.8.4
if(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 7 AND
    ${CMAKE_PATCH_VERSION} GREATER 3)
    cmake_policy(SET CMP0017 NEW)
endif()

find_package(Qt4 4.6.0 REQUIRED)

include_directories(
    ${QT_INCLUDES}
    kdepimlibs
    ${CMAKE_CURRENT_BINARY_DIR}/../kdecore/includes/includes
    ${CMAKE_CURRENT_BINARY_DIR}/../kdecore/includes/includes/KDE
    ${CMAKE_CURRENT_BINARY_DIR}/../kdecore #kdefakes.h
)

add_subdirectory(kabc)
add_subdirectory(kcalcore)
add_subdirectory(kmime)
add_subdirectory(kpimutils)
add_subdirectory(kcalutils)
add_subdirectory(kimap)
add_subdirectory(notes)
add_subdirectory(kdepimlibs/includes)


#macro(install_headers _dir)
#    install( DIRECTORY ${_dir} DESTINATION ${INCLUDE_INSTALL_DIR}/KDE )
#endmacro(install_headers _dir)
#
#install_headers( KABC )
#install_headers( KCalCore )
#install_headers( KCalUtils )
#install_headers( KIMAP )
#install_headers( KLDAP )
#install_headers( KMime )
#install_headers( KPIMUtils )