summaryrefslogtreecommitdiff
path: root/ldmicro/CMakeLists.txt
diff options
context:
space:
mode:
authorakshay-c2019-09-13 12:24:18 +0530
committerakshay-c2019-09-13 12:24:18 +0530
commit13b6349465e26e8cd015e4153aa8843c706275ec (patch)
tree73cd7302c00957cb6eae1cacdffb77073556beec /ldmicro/CMakeLists.txt
parente64d76c057d561e81ad26dcc9acf04f014a855e9 (diff)
downloadLDmicroQt-13b6349465e26e8cd015e4153aa8843c706275ec.tar.gz
LDmicroQt-13b6349465e26e8cd015e4153aa8843c706275ec.tar.bz2
LDmicroQt-13b6349465e26e8cd015e4153aa8843c706275ec.zip
Patch 1 ToolBar, AnalogSlider Realtime update
Diffstat (limited to 'ldmicro/CMakeLists.txt')
-rw-r--r--ldmicro/CMakeLists.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/ldmicro/CMakeLists.txt b/ldmicro/CMakeLists.txt
index adb0c0f..8f5a5e8 100644
--- a/ldmicro/CMakeLists.txt
+++ b/ldmicro/CMakeLists.txt
@@ -2,10 +2,11 @@ cmake_minimum_required(VERSION 2.6)
project(LDMicro)
-## Version control
- set (LDMicro_VERSION_MAJOR 2)
- set (LDMicro_VERSION_MINOR 2)
- set (LDMicro_VERSION_PATCH 0)
+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})
macro(use_cxx14)
@@ -157,6 +158,7 @@ endif()
draw.cpp
schematic.cpp
helpdialog.cpp
+ toolbar.cpp
${OBJDIR}/helptext.cpp
maincontrols.cpp
ldmicro.cpp)