summaryrefslogtreecommitdiff
path: root/kpimutils/CMakeLists.txt
blob: f321be2db772ba4ce6c3c058e9a8f3d064d93a59 (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
project(kpimutils)

add_definitions(-DKDE_DEFAULT_DEBUG_AREA=5321)

# add_subdirectory(tests)

include_directories(../kmime)

set(kpimutils_LIB_SRCS
  email.cpp
#   emailvalidator.cpp
#   linklocator.cpp
#   spellingfilter.cpp
#   kfileio.cpp
#   processes.cpp
)

# network access helper
# if(WINCE)
#   set(kpimutils_LIB_SRCS ${kpimutils_LIB_SRCS} networkaccesshelper_wince.cpp)
# else()
#   set(kpimutils_LIB_SRCS ${kpimutils_LIB_SRCS} networkaccesshelper_fake.cpp)
# endif()

add_library(calendaring-kpimutils ${LIBRARY_TYPE} ${kpimutils_LIB_SRCS})

target_link_libraries(calendaring-kpimutils ${KDE4_KDEUI_LIBS} ${KDE4_KEMOTICONS_LIBS} calendaring-kmime)

# if(WINCE)
#   target_link_libraries(calendaring-kpimutils ${WCECOMPAT_LIBRARIES} ${KDE4_SOLID_LIBS} toolhelp)
# endif()

set_target_properties(calendaring-kpimutils PROPERTIES
  VERSION ${GENERIC_LIB_VERSION}
  SOVERSION ${GENERIC_LIB_SOVERSION}
)

install(TARGETS calendaring-kpimutils EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})

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

install(FILES
  kpimutils_export.h
  email.h
#   emailvalidator.h
#   linklocator.h
#   spellingfilter.h
#   kfileio.h
#   supertrait.h
#   processes.h
#   networkaccesshelper.h
DESTINATION ${INCLUDE_INSTALL_DIR}/kpimutils COMPONENT Devel)