Merge pull request #3 from QuasarApp/task_2

Fix example
This commit is contained in:
Andrei Yankovich 2021-04-16 16:42:31 +03:00 committed by GitHub
commit a21129f657
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 7 deletions

View File

@ -46,5 +46,4 @@ endif()
initAll()
addDoc(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/doxygen.conf)

View File

@ -9,17 +9,12 @@ cmake_minimum_required(VERSION 3.5)
project(ViewSolutionsExamples LANGUAGES CXX)
include(../ViewSolutions/CMake/ProjectOut.cmake)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(QT NAMES Qt6 Qt5 COMPONENTS Core REQUIRED)
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core REQUIRED)
file(GLOB SOURCE_CPP
"src/*.cpp"
"src/*.qrc"
@ -27,7 +22,7 @@ file(GLOB SOURCE_CPP
)
if(ANDROID)
add_library(${PROJECT_NAME} SHARED ${SOURCE_CPP})
add_library(${PROJECT_NAME} ${SOURCE_CPP})
else()
add_executable(${PROJECT_NAME} ${SOURCE_CPP})
endif()