tycho: add version and authors
parent
bb8f8d4636
commit
40a28149a1
|
@ -50,6 +50,13 @@ target_include_directories(
|
||||||
$ENV{OUT_DIR}
|
$ENV{OUT_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
target_compile_definitions(
|
||||||
|
maraiah-tycho-hermes
|
||||||
|
PUBLIC
|
||||||
|
-DTYCHO_VERSION=\"$ENV{CARGO_PKG_VERSION}\"
|
||||||
|
-DTYCHO_AUTHORS=\"$ENV{CARGO_PKG_AUTHORS}\"
|
||||||
|
)
|
||||||
|
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
maraiah-tycho-hermes
|
maraiah-tycho-hermes
|
||||||
Qt5::Core
|
Qt5::Core
|
||||||
|
|
|
@ -44,6 +44,8 @@ void Menu::openAbout()
|
||||||
Ui::About about{};
|
Ui::About about{};
|
||||||
|
|
||||||
about.setupUi(&dlg);
|
about.setupUi(&dlg);
|
||||||
|
about.labelVer->setText(tr(TYCHO_VERSION));
|
||||||
|
about.labelAuthors->setText(tr(TYCHO_AUTHORS));
|
||||||
|
|
||||||
dlg.exec();
|
dlg.exec();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue