summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: 76ed9f314d548ef918de757c768553d80fc232f8 (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
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)

add_subdirectory(kdecore)
add_subdirectory(kmime)
add_subdirectory(kcalcore)
add_subdirectory(kimap)

# 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})