2022-07-04 21:14:13 +00:00
|
|
|
# Onboarding Module build definition
|
2022-05-10 20:10:34 +00:00
|
|
|
#
|
|
|
|
cmake_minimum_required(VERSION 3.21)
|
|
|
|
|
|
|
|
project(Onboarding
|
|
|
|
VERSION 0.1.0
|
|
|
|
LANGUAGES CXX)
|
|
|
|
|
|
|
|
set(QT_NO_CREATE_VERSIONLESS_FUNCTIONS true)
|
|
|
|
|
2022-07-04 21:14:13 +00:00
|
|
|
find_package(Qt6 ${STATUS_QT_VERSION} COMPONENTS Quick Qml Concurrent REQUIRED)
|
2022-05-10 20:10:34 +00:00
|
|
|
qt6_standard_project_setup()
|
|
|
|
|
2022-07-04 21:14:13 +00:00
|
|
|
qt6_add_qml_module(Onboarding
|
2022-05-10 20:10:34 +00:00
|
|
|
URI Status.Onboarding
|
|
|
|
VERSION 1.0
|
2022-05-31 21:26:41 +00:00
|
|
|
|
2022-05-10 20:10:34 +00:00
|
|
|
QML_FILES
|
2022-07-04 21:14:13 +00:00
|
|
|
qml/Status/Onboarding/base/SetupNewProfilePageBase.qml
|
|
|
|
qml/Status/Onboarding/base/OnboardingPageBase.qml
|
|
|
|
|
|
|
|
qml/Status/Onboarding/ConfirmPasswordPage.qml
|
|
|
|
qml/Status/Onboarding/CreatePasswordPage.qml
|
|
|
|
qml/Status/Onboarding/LoginView.qml
|
2022-05-10 20:10:34 +00:00
|
|
|
qml/Status/Onboarding/OnboardingView.qml
|
2022-07-04 21:14:13 +00:00
|
|
|
qml/Status/Onboarding/SetupNewProfileView.qml
|
|
|
|
qml/Status/Onboarding/SetUserNameAndPicturePage.qml
|
|
|
|
qml/Status/Onboarding/TempTextInput.qml
|
|
|
|
qml/Status/Onboarding/WelcomeView.qml
|
2022-05-31 21:26:41 +00:00
|
|
|
|
2022-05-10 20:10:34 +00:00
|
|
|
# Required to suppress "qmllint may not work" warning
|
|
|
|
OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Status/Onboarding/
|
|
|
|
)
|
2022-07-04 21:14:13 +00:00
|
|
|
add_library(Status::Onboarding ALIAS Onboarding)
|
|
|
|
|
|
|
|
add_subdirectory(src)
|
|
|
|
add_subdirectory(tests)
|
2022-05-10 20:10:34 +00:00
|
|
|
|
2022-07-04 21:14:13 +00:00
|
|
|
target_link_libraries(Onboarding
|
2022-05-10 20:10:34 +00:00
|
|
|
PRIVATE
|
|
|
|
Qt6::Quick
|
|
|
|
Qt6::Qml
|
2022-07-04 21:14:13 +00:00
|
|
|
Qt6::Concurrent
|
|
|
|
|
|
|
|
Status::ApplicationCore
|
|
|
|
|
|
|
|
Status::StatusGoQt
|
|
|
|
Status::StatusGoConfig
|
2022-05-10 20:10:34 +00:00
|
|
|
)
|
|
|
|
|
2022-07-04 21:14:13 +00:00
|
|
|
# Required by the MacOS authenticator. Consider moving platform particular implementation in its own static linked library
|
|
|
|
if(APPLE)
|
|
|
|
target_link_libraries(Onboarding
|
|
|
|
PRIVATE
|
|
|
|
"-framework Security"
|
|
|
|
"-framework LocalAuthentication"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2022-05-10 20:10:34 +00:00
|
|
|
# QtCreator needs this
|
|
|
|
set(QML_IMPORT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/qml;${QML_IMPORT_PATH} CACHE STRING "For QtCreator" FORCE)
|
|
|
|
list(REMOVE_DUPLICATES QML_IMPORT_PATH)
|
2022-06-07 10:58:06 +00:00
|
|
|
|
|
|
|
install(
|
|
|
|
TARGETS
|
2022-07-04 21:14:13 +00:00
|
|
|
Onboarding
|
2022-06-07 10:58:06 +00:00
|
|
|
RUNTIME
|
2022-07-04 21:14:13 +00:00
|
|
|
)
|