- added library checks to cmake
- added configuration of include files to cmake
- move package information into configurable include file
- cmake.h.in generates auto.h to be compatible with current
  implementation of autoconf
This commit is contained in:
Federico Hernandez
2011-01-02 16:26:33 +01:00
parent 462caf5bd4
commit 3e68bc9ec5
3 changed files with 92 additions and 47 deletions

View File

@@ -1,23 +1,7 @@
cmake_minimum_required (VERSION 2.8)
set(cmake_allow_loose_loop_constructs true)
project (task)
set (package "task")
set (version "1.9.4")
set (package_bugreport "support@taskwarrior.org")
set (package_name "${package}")
set (package_tarname "${package}")
set (package_version "${version}")
set (package_string "${package} ${version}")
add_definitions(-DPACKAGE="${package}")
add_definitions(-DVERSION="${version}")
add_definitions(-DPACKAGE_BUGREPORT="${package_bugreport}")
add_definitions(-DPACKAGE_NAME="${package_name}")
add_definitions(-DPACKAGE_TARNAME="${ipackage_tarname}")
add_definitions(-DPACKAGE_VERSION="${package_version}")
add_definitions(-DPACKAGE_STRING="${package_string}")
set (PROJECT_VERSION "1.9.4")
add_subdirectory (src)
add_subdirectory (test EXCLUDE_FROM_ALL)