From 4e68acfeaabe2abbe61612144f5f2df57a953334 Mon Sep 17 00:00:00 2001 From: Guillaumebeuzeboc Date: Sun, 6 Jan 2019 19:12:40 +0100 Subject: [PATCH] feat(cpack): seperate deb version into different file --- CMakeLists.txt | 4 +--- version.cmake | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 version.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index f714b86..8a57ac8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,9 +22,7 @@ install(TARGETS QGLViz DESTINATION bin) set(CMAKE_PROJECT_NAME "QGLViz") -set(MAJOR_VERSION "1") -set(MINOR_VERSION "0") -set(PATCH_VERSION "0") +include(${CMAKE_CURRENT_SOURCE_DIR}/version.cmake) if(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake") include(InstallRequiredSystemLibraries) set(CPACK_SET_DESTDIR "on") diff --git a/version.cmake b/version.cmake new file mode 100644 index 0000000..e64dbbc --- /dev/null +++ b/version.cmake @@ -0,0 +1,3 @@ +set(MAJOR_VERSION "1") +set(MINOR_VERSION "0") +set(PATCH_VERSION "0")