Skip to content

Commit

Permalink
feat: print cmake version
Browse files Browse the repository at this point in the history
  • Loading branch information
tootal committed Jan 12, 2024
1 parent f2caabc commit 7b7b947
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ target_sources(${MODULE_NAME}

target_compile_definitions(${MODULE_NAME}
PRIVATE
VERSION_STR="${CMAKE_PROJECT_VERSION}")
VERSION_STR="${CMAKE_PROJECT_VERSION}"
PUBLIC
CMAKE_VERSION_STR="${CMAKE_VERSION}")

list(TRANSFORM QT_COMPONENTS PREPEND Qt${QT_VERSION_MAJOR}::)
# message(STATUS "QT_COMPONENTS ${QT_COMPONENTS}")
Expand Down
1 change: 1 addition & 0 deletions src/app/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -421,4 +421,5 @@ void MainWindow::on_actionDocumentation_triggered()
void MainWindow::on_actionDeveloperTools_triggered()
{
qDebug() << "C++ version:" << __cplusplus;
qDebug() << "CMake version:" << CMAKE_VERSION_STR;
}

0 comments on commit 7b7b947

Please sign in to comment.