summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorRossen Apostolov <rossen@kth.se>2014-06-10 11:19:21 (GMT)
committerMagnus Lundborg <magnus.lundborg@scilifelab.se>2014-06-16 13:51:54 (GMT)
commitf38717324267c2da69c20a0f1918ce8ef1e66be7 (patch)
tree7b7da0f06764162a66df5e1c3da34cc5acec14b4 /CMakeLists.txt
parentd4ccc39c47884a3f35470defdf8c94220f0ea725 (diff)
Added project and API versions to CMakeLists.txt.
TNG_VERSION was renamed to TNG_API_VERSION which is configured through API_VERSION in CMakeLists.txt. Updated the header to 2014. Change-Id: I6a37825cd1d236927ac0e21a797abc4e98f7ce59
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3116844..97f056b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,12 @@
cmake_minimum_required(VERSION 2.8)
project(TNG_IO)
+set(PROJECT_VERSION "1.5")
+set(API_VERSION "5")
+
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/include/version.h.in
+ ${CMAKE_BINARY_DIR}/include/version.h )
+include_directories(${CMAKE_BINARY_DIR}/include)
if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wall")
contact: Jan Huwald // Impressum