summaryrefslogtreecommitdiff
path: root/kdepimlibs/kabc/CMakeLists.txt
blob: ff2cb3e958e038f46d28fde49a377fe0ab7a9fb5 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
project(kabc)

# include_directories( ${KDE4_KIO_INCLUDES} )

add_definitions(${QDBUS_DEFINITIONS} -DKDE_DEFAULT_DEBUG_AREA=5700)
add_definitions( -DQT_NO_CAST_FROM_ASCII )
add_definitions( -DQT_NO_CAST_TO_ASCII )
add_definitions( -DWANT_DEPRECATED_KABC_API )

# these apply also for all subdirs
include_directories(
 ${CMAKE_CURRENT_SOURCE_DIR}
 ${CMAKE_CURRENT_BINARY_DIR}
 ${CMAKE_CURRENT_SOURCE_DIR}/vcardparser
 ${LIBCALENDARING_KABC_PATH}
)

# kabc/vcardparser/Makefile.am: vcards

set(vcards_STAT_SRCS
  ${LIBCALENDARING_KABC_PATH}/vcardparser/vcard.cpp
  ${LIBCALENDARING_KABC_PATH}/vcardparser/vcardline.cpp
  ${LIBCALENDARING_KABC_PATH}/vcardparser/vcardparser.cpp
)

# add_subdirectory( vcardparser )
# add_subdirectory( tests )
#add_subdirectory( scripts )
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/scripts)



########### next target ###############

set(kabc_LIB_SRCS
   ${LIBCALENDARING_KABC_PATH}/address.cpp
   ${LIBCALENDARING_KABC_PATH}/addressee.cpp
   ${LIBCALENDARING_KABC_PATH}/addressee.h
   ${LIBCALENDARING_KABC_PATH}/field.cpp
   ${LIBCALENDARING_KABC_PATH}/contactgroup.cpp
   ${LIBCALENDARING_KABC_PATH}/contactgrouptool.cpp
   ${LIBCALENDARING_KABC_PATH}/errorhandler.cpp
   ${LIBCALENDARING_KABC_PATH}/geo.cpp
   ${LIBCALENDARING_KABC_PATH}/key.cpp
#    ldapdn.cpp
#    ldif.cpp
   ${LIBCALENDARING_KABC_PATH}/phonenumber.cpp
   ${LIBCALENDARING_KABC_PATH}/picture.cpp
   ${LIBCALENDARING_KABC_PATH}/plugin.cpp
   ${LIBCALENDARING_KABC_PATH}/secrecy.cpp
   ${LIBCALENDARING_KABC_PATH}/sound.cpp
   ${LIBCALENDARING_KABC_PATH}/timezone.cpp
#    ldifconverter.cpp
   ${LIBCALENDARING_KABC_PATH}/addresseelist.cpp
   ${LIBCALENDARING_KABC_PATH}/vcardconverter.cpp
   ${LIBCALENDARING_KABC_PATH}/vcardtool.cpp
   ${LIBCALENDARING_KABC_PATH}/addresseehelper.cpp
#    lock.cpp
#    locknull.cpp
   ${LIBCALENDARING_KABC_PATH}/sortmode.cpp
#    vcarddrag.cpp
   ${vcards_STAT_SRCS}
)

# if (NOT WINCE)
#   set(kabc_LIB_SRCS
#     ${kabc_LIB_SRCS}
#    #disabled due to no QTreeWidget
#    emailselectdialog.cpp
#   )
# endif()

qt4_wrap_cpp(MOC_OUTPUT
    ${LIBCALENDARING_KABC_PATH}/addresseehelper.h
)

add_library(calendaring-kabc ${LIBRARY_TYPE} ${kabc_LIB_SRCS} ${MOC_OUTPUT})

target_link_libraries(calendaring-kabc ${KDE4_KDEUI_LIBS} ${KDE4_KDECORE_LIBS}
${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} calendaring-kdecore)
target_link_libraries(calendaring-kabc LINK_INTERFACE_LIBRARIES ${KDE4_KDEUI_LIBS})

set_target_properties(calendaring-kabc PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
install(TARGETS calendaring-kabc EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})

########### install files ###############

# install( FILES countrytransl.map  DESTINATION  ${DATA_INSTALL_DIR}/kabc )
install( FILES
   ${LIBCALENDARING_KABC_PATH}/kabc_export.h
   ${LIBCALENDARING_KABC_PATH}/address.h
   ${LIBCALENDARING_KABC_PATH}/addressee.h
   ${LIBCALENDARING_KABC_PATH}/addresseelist.h
   ${LIBCALENDARING_KABC_PATH}/contactgroup.h
   ${LIBCALENDARING_KABC_PATH}/contactgrouptool.h
#  ${LIBCALENDARING_KABC_PATH}/  emailselectdialog.h
   ${LIBCALENDARING_KABC_PATH}/errorhandler.h
   ${LIBCALENDARING_KABC_PATH}/field.h
   ${LIBCALENDARING_KABC_PATH}/geo.h
   ${LIBCALENDARING_KABC_PATH}/key.h
#  ${LIBCALENDARING_KABC_PATH}/  ldifconverter.h
#  ${LIBCALENDARING_KABC_PATH}/  lock.h
#  ${LIBCALENDARING_KABC_PATH}/  locknull.h
   ${LIBCALENDARING_KABC_PATH}/phonenumber.h
   ${LIBCALENDARING_KABC_PATH}/picture.h
   ${LIBCALENDARING_KABC_PATH}/plugin.h
   ${LIBCALENDARING_KABC_PATH}/secrecy.h
   ${LIBCALENDARING_KABC_PATH}/sortmode.h
   ${LIBCALENDARING_KABC_PATH}/sound.h
   ${LIBCALENDARING_KABC_PATH}/timezone.h
   ${LIBCALENDARING_KABC_PATH}/vcardconverter.h
#    vcarddrag.h
   DESTINATION ${INCLUDE_INSTALL_DIR}/kabc COMPONENT Devel
)