summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2012-06-26 11:01:23 (GMT)
committerChristian Mollekopf <chrigi_1@fastmail.fm>2012-06-26 11:01:23 (GMT)
commit3a2a3c681b88e331a4925e6edf8d8e5dbff05f6e (patch)
treea09463d76b3234769955e5236d181a2e1adab379 /CMakeLists.txt
parenteafcbe460fa64cf8bd3cddd54e2288a2ef4e7b42 (diff)
downloadlibcalendaring-3a2a3c681b88e331a4925e6edf8d8e5dbff05f6e.tar.gz
overall cmake file
Diffstat (limited to 'CMakeLists.txt')
-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