diff options
author | akshay-c | 2019-09-16 14:17:36 +0530 |
---|---|---|
committer | akshay-c | 2019-09-16 14:17:36 +0530 |
commit | d318aec6d8c31e890153c61d0d88a146c648db53 (patch) | |
tree | e07409b702ccf92771f6dd5051ac3bb83448c011 /ldmicro/CMakeLists.txt | |
parent | 13b6349465e26e8cd015e4153aa8843c706275ec (diff) | |
download | LDmicroQt-d318aec6d8c31e890153c61d0d88a146c648db53.tar.gz LDmicroQt-d318aec6d8c31e890153c61d0d88a146c648db53.tar.bz2 LDmicroQt-d318aec6d8c31e890153c61d0d88a146c648db53.zip |
Minor build changes:auto versioning
Diffstat (limited to 'ldmicro/CMakeLists.txt')
-rw-r--r-- | ldmicro/CMakeLists.txt | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ldmicro/CMakeLists.txt b/ldmicro/CMakeLists.txt index 8f5a5e8..b013b90 100644 --- a/ldmicro/CMakeLists.txt +++ b/ldmicro/CMakeLists.txt @@ -2,11 +2,10 @@ cmake_minimum_required(VERSION 2.6) project(LDMicro) -file(READ "${CMAKE_CURRENT_SOURCE_DIR}/includes/ldmicroVC.h" VersionRead) - -string(REGEX MATCH "LDMicro_VERSION_MAJOR ([0-9]*)" LDMicro_VERSION_MAJOR ${VersionRead}) -string(REGEX MATCH "LDMicro_VERSION_MINOR ([0-9]*)" LDMicro_VERSION_MINOR ${VersionRead}) -string(REGEX MATCH "LDMicro_VERSION_PATCH ([0-9]*)" LDMicro_VERSION_PATCH ${VersionRead}) +#set version here. This version is updated to ldmicroVC.h +set(LDMicro_VERSION_MAJOR 2) +set(LDMicro_VERSION_MINOR 3) +set(LDMicro_VERSION_PATCH 0) macro(use_cxx14) @@ -207,6 +206,9 @@ endif() set(CPACK_PACKAGE_VERSION_MAJOR ${LDMicro_VERSION_MAJOR}) set(CPACK_PACKAGE_VERSION_MINOR ${LDMicro_VERSION_MINOR}) set(CPACK_PACKAGE_VERSION_PATCH ${LDMicro_VERSION_PATCH}) + + set (CPACK_DEBIAN_FILE_NAME + "LDmicro_Qt-${LDMicro_VERSION_MAJOR}.${LDMicro_VERSION_MINOR}.${LDMicro_VERSION_PATCH}-${RELEASE_CODENAME}.deb") set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON) set(CPACK_PACKAGE_DESCRIPTION "Ladder Logic editor, simulator and compiler for 8 bit microcontrollers") |