tycho: add version and authors

master
an 2019-06-09 16:31:09 -04:00
parent bb8f8d4636
commit 40a28149a1
2 changed files with 9 additions and 0 deletions

View File

@ -50,6 +50,13 @@ target_include_directories(
$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(
maraiah-tycho-hermes
Qt5::Core

View File

@ -44,6 +44,8 @@ void Menu::openAbout()
Ui::About about{};
about.setupUi(&dlg);
about.labelVer->setText(tr(TYCHO_VERSION));
about.labelAuthors->setText(tr(TYCHO_AUTHORS));
dlg.exec();
}