summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt32
1 files changed, 32 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..76ed9f3
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,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}) \ No newline at end of file