CMakeLists.txt

Christian Mollekopf mollekopf at kolabsys.com
Mon May 21 12:13:21 CEST 2012


 CMakeLists.txt |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 2ce5dd24fd7a9f3c31f27f7c15e1b570c1b3c44b
Author: Christian Mollekopf <mollekopf at kolabsys.com>
Date:   Mon May 21 01:31:18 2012 +0200

    Set defaults for LIB_INSTALL_DIR and INCLUDE_INSTALL_DIR which can be overridden by commandline definitions.
    
    CMAKE projects should be installable without commandline options, this way we fullfill this basic requirement while still allowing for full control for packagers.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6f8435a..71230dd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -74,6 +74,8 @@ endif()
 #C++ is required from here on
 enable_language(CXX)
 
+set(LIB_INSTALL_DIR lib CACHE STRING "The directories where to install libraries to")
+set(INCLUDE_INSTALL_DIR include/libkolabxml CACHE STRING "The directories where to install libraries to")
 set(CMAKECONFIG_INSTALL_DIR ${LIB_INSTALL_DIR}/cmake/Libkolabxml )
 
 configure_file(libkolabxml-version.h.cmake "${CMAKE_BINARY_DIR}/libkolabxml-version.h" @ONLY)





More information about the commits mailing list