summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorPetre Eftime <[email protected]>2016-05-04 14:32:13 +0300
committerPetre Eftime <[email protected]>2016-05-04 14:32:13 +0300
commitf3298303bbf32b7f49b8aaa85aec3076fd13a2d6 (patch)
tree2c9a26f14b5b510ac6d5a1b2d7c8779904723963 /CMakeLists.txt
parent249b457f16623885db25d3ce58b6bb1de4eb509a (diff)
Add additional version information, including in jar manifest
Signed-off-by: Petre Eftime <[email protected]>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ab9cba47..65c64524 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -36,6 +36,7 @@ string (REGEX REPLACE "^v[0-9]+\\.[0-9]+\\.([0-9]+).*" "\\1" VERSION_PATCH "${VE
string (REGEX REPLACE "^v[0-9]+\\.[0-9]+\\.[0-9]+\\-([0-9]+).*" "\\1" VERSION_COMMIT "${VERSION}")
string (REGEX REPLACE "^v[0-9]+\\.[0-9]+\\.[0-9]+-[0-9]+\\-(.*)" "\\1" VERSION_SHA1 "${VERSION}")
set (VERSION_SHORT "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
+set (VERSION_API "${VERSION_MAJOR}.${VERSION_MINOR}")
if ("${VERSION_COMMIT}" MATCHES "^v.*")
set (VERSION_COMMIT "")
@@ -76,6 +77,7 @@ include_directories (${SYSTEM_USR_DIR})
option (BUILDJAVA "Build Java API." OFF)
IF(BUILDJAVA)
+ configure_file (${CMAKE_CURRENT_SOURCE_DIR}/java/manifest.txt.in ${CMAKE_CURRENT_BINARY_DIR}/java/manifest.txt)
add_subdirectory (java)
add_subdirectory (examples/java)
ENDIF(BUILDJAVA)