summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2012-07-20 10:53:16 (GMT)
committerChristian Mollekopf <chrigi_1@fastmail.fm>2012-07-20 10:53:16 (GMT)
commit80a7b5a5ac11bd27affeba3c9d1e5f3a11ec8e61 (patch)
treef342c7a89b78429904be10444c8aaa23af1caf6b
parentd70c9dc282b121c87e278900ee621dc05970935f (diff)
downloadlibcalendaring-80a7b5a5ac11bd27affeba3c9d1e5f3a11ec8e61.tar.gz
Version number and proper include_install_dir.
-rw-r--r--CMakeLists.txt15
1 files changed, 14 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 661b74d..8a91e8a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,6 +2,18 @@ cmake_minimum_required(VERSION 2.6)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC" )
+set(LIBCALENDARING_VERSION_MAJOR 0)
+set(LIBCALENDARING_VERSION_MINOR 1)
+
+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(GENERIC_LIB_VERSION ${LIBCALENDARING_VERSION_MAJOR}.${LIBCALENDARING_VERSION_MINOR})
+set(GENERIC_LIB_SOVERSION ${LIBCALENDARING_VERSION_MAJOR})
+
include_directories(./)
include_directories(kdecore/localization)
include_directories(kdecore)
@@ -19,7 +31,8 @@ include_directories(kdecore/util)
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(INCLUDE_INSTALL_DIR include CACHE STRING "The directories where to install headers to")
+set(INCLUDE_INSTALL_DIR ${INCLUDE_INSTALL_DIR}/calendaring)
set(INSTALL_TARGETS_DEFAULT_ARGS RUNTIME DESTINATION ${BIN_INSTALL_DIR}
LIBRARY DESTINATION ${LIB_INSTALL_DIR}
ARCHIVE DESTINATION ${LIB_INSTALL_DIR}