summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: 7b81e09b378d18dc51c8ebba12ccb7496e74f5c8 (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
cmake_minimum_required(VERSION 2.6)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC" )

include_directories(./)
include_directories(kdecore/localization)

set(LIBRARY_TYPE SHARED)

set(LIB_INSTALL_DIR lib CACHE STRING "The directories where to install libraries to")
set(INCLUDE_INSTALL_DIR include/libcalendaring CACHE STRING "The directories where to install headers to")
set(INSTALL_TARGETS_DEFAULT_ARGS  RUNTIME DESTINATION ${BIN_INSTALL_DIR}
                                LIBRARY DESTINATION ${LIB_INSTALL_DIR}
                                ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
)
# set(CMAKE_AUTOMOC ON)

add_subdirectory(kdecore)
add_subdirectory(kmime)
add_subdirectory(kcalcore)
add_subdirectory(kimap)
add_subdirectory(kabc)
add_subdirectory(notes)
add_subdirectory(kpimutils)
add_subdirectory(kcalutils)

install( FILES kdemacros.h
 DESTINATION ${INCLUDE_INSTALL_DIR}  COMPONENT Devel)

# set(static_libs ${CMAKE_CURRENT_BINARY_DIR}/kdecore/libcalendaring-kdecore.a
# ${CMAKE_CURRENT_BINARY_DIR}/kmime/libcalendaring-kmime
# ${CMAKE_CURRENT_BINARY_DIR}/kcalcore/libcalendaring-kcalcore
# ${CMAKE_CURRENT_BINARY_DIR}/kimap/libcalendaring-kimap
# )
# set(libs calendaring-kdecore
#         calendaring-kmime
#         calendaring-kcalcore
#         calendaring-kimap
# )
# 
# add_library(calendaring SHARED dummy.cpp)
# set_target_properties(calendaring PROPERTIES STATIC_LIBRARY_FLAGS "${CMAKE_CURRENT_BINARY_DIR}/kdecore/libcalendaring-kdecore.a ${CMAKE_CURRENT_BINARY_DIR}/kmime/libcalendaring-kmime.a ${CMAKE_CURRENT_BINARY_DIR}/kcalcore/libcalendaring-kcalcore.a ${CMAKE_CURRENT_BINARY_DIR}/kimap/libcalendaring-kimap.a")
# target_link_libraries(calendaring LINK_INTERFACE_LIBRARIES ${libs} )
# target_link_libraries(calendaring ${libs})
# message("${libs}")
# include(MergeStaticLibraries)
# MERGE_STATIC_LIBS(calendaring ${libs})