--- a/CMakeLists.txt Thu Mar 04 19:56:16 2010 +0200
+++ b/CMakeLists.txt Sun Mar 14 23:14:37 2010 +0200
@@ -16,6 +16,7 @@
cmake_minimum_required(VERSION 2.6)
project(yaubil C)
+set(PROJECT_VERSION "0.0.1")
## User settable options
@@ -30,6 +31,7 @@
add_library(yaubil MODULE yaubil.c)
## Compiler setup
+configure_file(config.h.in config.h)
include_directories(SYSTEM ${GLIB_INCLUDE_DIRS}
${MCABBER_INCLUDE_DIRS})
target_link_libraries(yaubil ${GLIB_LIBRARIES}
@@ -39,7 +41,7 @@
## Packaging information
set(CPACK_PACKAGE_NAME libmcabber-yaubil)
-set(CPACK_PACKAGE_VERSION "0.0.1")
+set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
set(CPACK_PACKAGE_VENDOR "IsBear")
set(CPACK_PACKAGE_CONTACT "Myhailo Danylenko <isbear@ukrpost.net>")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Mcabber's Yet Another Useless Built-In Language")