This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "mainwindow.h" | |
#include <QApplication> | |
#include "mainwindow.h" | |
#include <QApplication> | |
#include <QDesktopWidget> | |
#include <cstdio> | |
#include <QMessageBox> | |
typedef struct{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find_package(Git) | |
if(GIT_FOUND AND EXISTS "${CMAKE_SOURCE_DIR}/.git") | |
INCLUDE(GetGitRevisionDescription) | |
EXECUTE_PROCESS(COMMAND ${GIT_EXECUTABLE} rev-parse --short HEAD OUTPUT_VARIABLE SHORT_SHA OUTPUT_STRIP_TRAILING_WHITESPACE) | |
SET(REVISION ${SHORT_SHA} CACHE STRING "git short sha" FORCE) | |
# only use the plugin to tie the configure state to the sha to force rebuilds | |
# of files that depend on version.h | |
include(GetGitRevisionDescription) |