summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt53
1 files changed, 27 insertions, 26 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 591b10c..00408a5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,27 +1,18 @@
-project(Libcalendaring)
-
cmake_minimum_required(VERSION 2.6)
-
-set(Libcalendaring_MODULE_DIR ${Libcalendaring_SOURCE_DIR}/cmake/modules)
-set(CMAKE_MODULE_PATH ${Libcalendaring_MODULE_DIR})
-
+set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -Wl,--no-undefined" )
-set(Libcalendaring_VERSION_MAJOR 0)
-set(Libcalendaring_VERSION_MINOR 3)
+set(LIBCALENDARING_VERSION_MAJOR 0)
+set(LIBCALENDARING_VERSION_MINOR 1)
-set(KdepimLibs_VERSION_MAJOR 4)
-set(KdepimLibs_VERSION_MINOR 10)
-set(KdepimLibs_VERSION_PATCH 0)
+set(KDE_NON_GENERIC_LIB_VERSION ${LIBCALENDARING_VERSION_MAJOR}.${LIBCALENDARING_VERSION_MINOR})
+set(KDE_NON_GENERIC_LIB_SOVERSION ${LIBCALENDARING_VERSION_MAJOR})
-set(KDE_NON_GENERIC_LIB_VERSION ${Libcalendaring_VERSION_MAJOR}.${Libcalendaring_VERSION_MINOR})
-set(KDE_NON_GENERIC_LIB_SOVERSION ${Libcalendaring_VERSION_MAJOR})
+set(ECM_VERSION_STRING ${LIBCALENDARING_VERSION_MAJOR}.${LIBCALENDARING_VERSION_MINOR})
+set(ECM_SOVERSION ${LIBCALENDARING_VERSION_MAJOR})
-set(ECM_VERSION_STRING ${Libcalendaring_VERSION_MAJOR}.${Libcalendaring_VERSION_MINOR})
-set(ECM_SOVERSION ${Libcalendaring_VERSION_MAJOR})
-
-set(GENERIC_LIB_VERSION ${Libcalendaring_VERSION_MAJOR}.${Libcalendaring_VERSION_MINOR})
-set(GENERIC_LIB_SOVERSION ${Libcalendaring_VERSION_MAJOR})
+set(GENERIC_LIB_VERSION ${LIBCALENDARING_VERSION_MAJOR}.${LIBCALENDARING_VERSION_MINOR})
+set(GENERIC_LIB_SOVERSION ${LIBCALENDARING_VERSION_MAJOR})
add_definitions(-DKDE_NO_DBUS)
add_definitions(-DKDE_NO_TIMEZONED)
@@ -49,8 +40,6 @@ set(INSTALL_TARGETS_DEFAULT_ARGS RUNTIME DESTINATION ${BIN_INSTALL_DIR}
LIBRARY DESTINATION ${LIB_INSTALL_DIR}
ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
)
-set(CMAKECONFIG_INSTALL_DIR ${LIB_INSTALL_DIR}/cmake/Libcalendaring)
-
# set(CMAKE_AUTOMOC ON)
add_subdirectory(kdecore)
@@ -65,9 +54,21 @@ add_subdirectory(kcalutils)
install( FILES kdemacros.h
DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel)
-configure_file(${Libcalendaring_MODULE_DIR}/LibcalendaringConfig.cmake.in ${Libcalendaring_BINARY_DIR}/LibcalendaringConfig.cmake @ONLY )
-configure_file(${Libcalendaring_MODULE_DIR}/LibcalendaringConfigVersion.cmake.in ${Libcalendaring_BINARY_DIR}/LibcalendaringConfigVersion.cmake @ONLY )
-# Install these two files into the same directory as the generated exports-file.
-install(FILES ${Libcalendaring_BINARY_DIR}/LibcalendaringConfig.cmake ${Libcalendaring_BINARY_DIR}/LibcalendaringConfigVersion.cmake
- DESTINATION ${CMAKECONFIG_INSTALL_DIR} )
-
+# 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})