File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,10 @@ target_link_libraries(livetikz
5454 Poppler::Qt5
5555)
5656
57+ file (STRINGS "VERSION" VERSION )
58+ set (CMAKE_CXX_FLAGS "-DAPPVERSION='\" ${VERSION} \" '" )
59+
60+
5761########### install files ###############
5862set (LIVETIKZ_DATA_INSTALL_DIR ${DATA_INSTALL_DIR} /livetikz)
5963set (LIVETIKZ_TEMPLATES_INSTALL_DIR ${LIVETIKZ_DATA_INSTALL_DIR} /templates)
Original file line number Diff line number Diff line change 1+ 0.3
Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ int main(int argc, char *argv[]) {
1313 KAboutData aboutData (
1414 QStringLiteral (" livetikz" ),
1515 i18n (" LiveTikZ" ),
16- QStringLiteral (" 0.3 " ),
16+ QStringLiteral (APPVERSION ),
1717 i18n (" A TikZ editor with live preview." ),
18- KAboutLicense::GPL ,
18+ KAboutLicense::BSDL ,
1919 i18n (" (c) 2017-2020 Michael Schwarz" ),
2020 " " ,
2121 " https://misc0110.net"
@@ -29,6 +29,7 @@ int main(int argc, char *argv[]) {
2929 aboutData.setupCommandLine (&parser);
3030 parser.process (app);
3131 aboutData.processCommandLine (&parser);
32+ KAboutData::setApplicationData (aboutData);
3233
3334 MainWindow *window = new MainWindow ();
3435 window->show ();
You can’t perform that action at this time.
0 commit comments