Skip to content

Commit

Permalink
get package version from cmake file
Browse files Browse the repository at this point in the history
  • Loading branch information
robberphex committed Apr 13, 2017
1 parent ca05d38 commit 5edde6f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
project(WizNote)

set(WIZNOTE_VERSION 2.5.0)

configure_file(WizDef.h.in WizDef.h)

add_subdirectory(test)

set(wiznote_SOURCES_MAC
Expand Down Expand Up @@ -77,7 +81,7 @@ set(wiznote_SOURCES
share/WizEnc.cpp
share/WizZiwReader.cpp
html/WizHtmlReader.cpp
html/WizHtmlCollector.cpp
html/WizHtmlCollector.cpp
share/WizSearch.cpp
widgets/WizScrollBar.cpp
sync/WizToken.cpp
Expand Down Expand Up @@ -186,7 +190,7 @@ set(wiznote_SOURCES
WizMobileFileReceiver.cpp
WizWebEngineInjectObject.cpp

WizOEMSettings.cpp
WizOEMSettings.cpp
mac/WizSearchWidget_mm.cpp
core/WizAccountManager.cpp
core/WizCommentManager.cpp
Expand Down
2 changes: 1 addition & 1 deletion src/WizDef.h → src/WizDef.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include <QtGlobal>

#define WIZ_CLIENT_VERSION "2.5.0"
#define WIZ_CLIENT_VERSION "@WIZNOTE_VERSION@"
#define WIZNOTE_FTS_VERSION "5"
#define WIZNOTE_THUMB_VERSION "3"
#define WIZ_NEW_FEATURE_GUIDE_VERSION "4"
Expand Down

0 comments on commit 5edde6f

Please sign in to comment.