aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-06-07 08:37:37 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2016-06-07 08:37:37 +0200
commitcca6b396fba9a144f3cbea947c21915f62024bef (patch)
treef3cc43c573e2a2f0927f7a8e087c4a013c196483
parentc08d41af24c92cca101e9443f939f064fc5a6f32 (diff)
downloadsherlock.lv2-cca6b396fba9a144f3cbea947c21915f62024bef.tar.xz
migrate to new versioning scheme.
-rw-r--r--CMakeLists.txt11
-rw-r--r--VERSION1
2 files changed, 7 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b8e848e..d5fe859 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,13 +11,14 @@ include_directories(${PROJECT_SOURCE_DIR}/symap)
set(CMAKE_C_FLAGS "-std=gnu11 -Wextra -Wno-unused-parameter -ffast-math -fvisibility=hidden ${CMAKE_C_FLAGS}")
set(CMAKE_C_FLAGS "-Wshadow -Wimplicit-function-declaration -Wmissing-prototypes -Wstrict-prototypes ${CMAKE_C_FLAGS}")
set(CMAKE_MODULE_LINKER_FLAGS "-Wl,-z,nodelete ${CMAKE_MODULE_LINKER_FLAGS}")
+add_definitions("-D_GNU_SOURCE=1") # asprintf
-set(SHERLOCK_MAJOR_VERSION 0)
-set(SHERLOCK_MINOR_VERSION 1)
-set(SHERLOCK_MICRO_VERSION 3)
-set(SHERLOCK_VERSION "${SHERLOCK_MAJOR_VERSION}.${SHERLOCK_MINOR_VERSION}.${SHERLOCK_MICRO_VERSION}")
+file(STRINGS "VERSION" SHERLOCK_VERSION)
+string(REPLACE "." ";" VERSION_LIST ${SHERLOCK_VERSION})
+list(GET VERSION_LIST 0 SHERLOCK_MAJOR_VERSION)
+list(GET VERSION_LIST 1 SHERLOCK_MINOR_VERSION)
+list(GET VERSION_LIST 2 SHERLOCK_MICRO_VERSION)
add_definitions("-DSHERLOCK_VERSION=\"${SHERLOCK_VERSION}\"")
-add_definitions("-D_GNU_SOURCE=1") # asprintf
set(DEST lib/lv2/sherlock.lv2)
diff --git a/VERSION b/VERSION
new file mode 100644
index 0000000..6c94f37
--- /dev/null
+++ b/VERSION
@@ -0,0 +1 @@
+0.9.59