Правка кода
This commit is contained in:
parent
348ac4ba85
commit
b931cdaf37
@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.6 FATAL_ERROR)
|
||||
cmake_policy(VERSION 3.6..3.7)
|
||||
|
||||
# Название и версия проекта и используемые языки программирования
|
||||
project(myx-example-qt5-console VERSION 0.4.0 LANGUAGES C CXX)
|
||||
project(myx-example-qt-console VERSION 0.4.0 LANGUAGES C CXX)
|
||||
|
||||
# Рекомендуемый способ подключения MyxCMake
|
||||
include(cmake/myx_setup.cmake)
|
||||
@ -19,8 +19,13 @@ myx_target_setup(${PROJECT_NAME}
|
||||
${PROJECT_SOURCE_DIR}/src/${PROJECT_NAME}/main.cpp
|
||||
)
|
||||
|
||||
if(NOT QT_VERSION)
|
||||
set(QT_VERSION "5")
|
||||
endif()
|
||||
|
||||
# Настройка Qt для цели
|
||||
myx_qt_target_setup(${PROJECT_NAME}
|
||||
VERSION ${QT_VERSION}
|
||||
COMPONENTS Core
|
||||
PRIVATE Core)
|
||||
|
||||
|
16
src/myx-example-qt-console/main.cpp
Normal file
16
src/myx-example-qt-console/main.cpp
Normal file
@ -0,0 +1,16 @@
|
||||
#include "config_p.hpp"
|
||||
#include "git_info_p.hpp"
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QDebug>
|
||||
#include <QtCore/private/minimum-linux_p.h>
|
||||
|
||||
int main( int argc, char** argv )
|
||||
{
|
||||
QCoreApplication app( argc, argv );
|
||||
|
||||
qDebug() << QString( "Qt version: %1.%2.%3" ).arg( QT_VERSION_MAJOR ).arg( QT_VERSION_MINOR ).arg( QT_VERSION_PATCH );
|
||||
qDebug() << QString( "Min Linux: %1.%2.%3" ).arg( MINLINUX_MAJOR ).arg( MINLINUX_MINOR ).arg( MINLINUX_PATCH );
|
||||
|
||||
return( 0 );
|
||||
}
|
Loading…
Reference in New Issue
Block a user