From a88eaa9debf456c561a3faf5a17fe0aff37641ec Mon Sep 17 00:00:00 2001 From: Alex Neundorf Date: Sat, 9 Jul 2011 18:53:39 +0200 Subject: Add a version number and an install() rule Alex --- CMakeLists.txt | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a89a38bb..e89e06a4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,19 @@ -# automoc comes now from kdesupport, Alex +cmake_minimum_required(VERSION 2.8.0 FATAL_ERROR ) # this will be upgraded to 2.8.6 -add_subdirectory(modules) +project(extra-cmake-modules) +set(ECM_MAJOR_VERSION 0 ) +set(ECM_MINOR_VERSION 0 ) +set(ECM_PATCH_VERSION 1 ) + +set(ECM_VERSION ${ECM_MAJOR_VERSION}.${ECM_MINOR_VERSION}.${ECM_PATCH_VERSION} ) + +# need to add a target to create the documentation via cmake --help... + +file(GLOB installFiles ${CMAKE_SOURCE_DIR}/modules/*cmake ) + +install(FILES ${installFiles} DESTINATION share/extra-cmake-modules-${ECM_VERSION}/modules/ ) + +# need to install a Config.cmake file + +# need to add cpack setup stuff for creating a package -- cgit v1.2.1