summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-10-26 10:20:28 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-10-26 10:20:28 +0100
commite9812c217921d9b10dcae12a7b6ee02ca99fffd5 (patch)
tree23e7773901be09694eeceba7fb46d9aa6e448487
parentGet rid (for 0.3 release) of shift + arrows scrolling feature. (diff)
downloadrekonq-e9812c217921d9b10dcae12a7b6ee02ca99fffd5.tar.xz
version.h.cmake support
-rw-r--r--CMakeLists.txt10
-rw-r--r--src/main.cpp8
-rw-r--r--version.h.cmake2
3 files changed, 9 insertions, 11 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ad20bab6..a7d21405 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,13 +7,9 @@ PROJECT( rekonq )
# Informations to update before to release this package.
# rekonq info
-SET(REKONQ_MAJOR_VERSION "0")
-SET(REKONQ_MINOR_VERSION "2")
-SET(REKONQ_PATCH_VERSION "72")
+SET(REKONQ_VERSION "0.2.72" )
-SET(REKONQ_VERSION_STR
- "${REKONQ_MAJOR_VERSION}.${REKONQ_MINOR_VERSION}.${REKONQ_PATCH_VERSION}"
- )
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/version.h )
SET(REKONQ_SITE "http://rekonq.sourceforge.net")
@@ -40,7 +36,7 @@ INCLUDE(MacroLibrary)
MESSAGE(STATUS "")
MESSAGE(STATUS "-----------------------------------------------------------------------")
-MESSAGE(STATUS " rekonq ${REKONQ_VERSION_STR} dependencies results <${REKONQ_SITE}>")
+MESSAGE(STATUS " rekonq ${REKONQ_VERSION} dependencies results <${REKONQ_SITE}>")
MESSAGE(STATUS "")
# Require shared libraries results.
diff --git a/src/main.cpp b/src/main.cpp
index 71feff37..9d7cc742 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -24,6 +24,9 @@
* ============================================================ */
+// version include
+#include "../version.h"
+
// Local Includes
#include "application.h"
#include "sessionmanager.h"
@@ -38,15 +41,12 @@ static const char description[] =
I18N_NOOP("A lightweight Web Browser for KDE based on WebKit");
-static const char version[] = "0.2.72";
-
-
int main(int argc, char **argv)
{
KAboutData about("rekonq",
0,
ki18n("rekonq"),
- version,
+ REKONQ_VERSION,
ki18n(description),
KAboutData::License_GPL_V3,
ki18n("(C) 2008-2009 Andrea Diamantini"),
diff --git a/version.h.cmake b/version.h.cmake
new file mode 100644
index 00000000..cbc6492b
--- /dev/null
+++ b/version.h.cmake
@@ -0,0 +1,2 @@
+#define REKONQ_VERSION "${REKONQ_VERSION}"
+