4
0
mirror of https://github.com/QuasarApp/QMLLoginView.git synced 2025-05-02 04:29:40 +00:00

47 lines
1.1 KiB
CMake
Raw Permalink Normal View History

#
2021-01-31 19:56:50 +03:00
# Copyright (C) 2018-2021 QuasarApp.
# Distributed under the lgplv3 software license, see the accompanying
# Everyone is permitted to copy and distribute verbatim copies
# of this license document, but changing it is not allowed.
#
cmake_minimum_required(VERSION 3.5)
project(LoginView LANGUAGES CXX)
if(TARGET ${PROJECT_NAME})
message("The ${PROJECT_NAME} arledy included in main Project")
return()
endif()
if (NOT DEFINED LOGINVIEW_EXAMPLES)
set(LOGINVIEW_EXAMPLES ON)
2021-04-16 16:40:24 +03:00
if (DEFINED TARGET_PLATFORM_TOOLCHAIN)
if (${TARGET_PLATFORM_TOOLCHAIN} STREQUAL "wasm32")
set(LOGINVIEW_EXAMPLES OFF)
endif()
endif()
if (ANDROID)
set(LOGINVIEW_EXAMPLES OFF)
endif()
2021-04-16 16:40:24 +03:00
2021-03-22 11:59:12 +03:00
endif()
2021-04-20 18:10:17 +03:00
include(CMake/QuasarApp.cmake)
find_package(QT NAMES Qt6 Qt5 COMPONENTS Core Quick Xml REQUIRED)
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core Quick Xml REQUIRED)
# Add sub directories
add_subdirectory(LoginView)
2021-03-22 11:59:12 +03:00
if (LOGINVIEW_EXAMPLES)
add_subdirectory(example)
endif()
initAll()
2021-04-16 15:53:45 +03:00
addDoc(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/doxygen.conf)