2022-05-10 20:10:34 +00:00
|
|
|
set(QT_NO_CREATE_VERSIONLESS_FUNCTIONS true)
|
|
|
|
|
|
|
|
set(CMAKE_AUTORCC On)
|
|
|
|
|
|
|
|
find_package(Qt6 ${STATUS_QT_VERSION} COMPONENTS Quick REQUIRED)
|
|
|
|
qt6_standard_project_setup()
|
|
|
|
|
2022-07-04 21:14:13 +00:00
|
|
|
qt6_add_executable(${PROJECT_NAME})
|
2022-05-10 20:10:34 +00:00
|
|
|
|
|
|
|
# TODO: Fix temporarly workaround until we make qt6_target_qml_sources work
|
|
|
|
# Adds qml files as /Status/Application/qml/.../<file name>
|
|
|
|
qt6_add_qml_module(${PROJECT_NAME}
|
|
|
|
URI Status.Application
|
|
|
|
VERSION 1.0
|
2022-05-31 21:26:41 +00:00
|
|
|
|
2022-05-10 20:10:34 +00:00
|
|
|
QML_FILES
|
|
|
|
qml/main.qml
|
2022-05-31 21:26:41 +00:00
|
|
|
qml/Status/Application/Decorators/SplashScreen.qml
|
2022-05-10 20:10:34 +00:00
|
|
|
|
|
|
|
qml/Status/Application/MainView/MainView.qml
|
2022-05-31 21:26:41 +00:00
|
|
|
qml/Status/Application/MainView/StatusApplicationSections.qml
|
|
|
|
|
|
|
|
qml/Status/Application/MainView/StatusApplicationSections/Wallet/WalletNavBarSection.qml
|
|
|
|
|
|
|
|
qml/Status/Application/Settings/ApplicationSettings.qml
|
2022-05-10 20:10:34 +00:00
|
|
|
|
|
|
|
qml/Status/Application/System/StatusTrayIcon.qml
|
|
|
|
|
2022-05-31 21:26:41 +00:00
|
|
|
qml/Status/Application/Workflows/CloseApplicationHandler.qml
|
|
|
|
|
|
|
|
qml/Status/Application/StatusContentView.qml
|
|
|
|
qml/Status/Application/MainShortcuts.qml
|
|
|
|
qml/Status/Application/StatusWindow.qml
|
|
|
|
|
2022-07-13 16:45:18 +00:00
|
|
|
SOURCES
|
|
|
|
res/app.qrc
|
|
|
|
|
2022-05-10 20:10:34 +00:00
|
|
|
OUTPUT_DIRECTORY
|
|
|
|
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Status/Application
|
|
|
|
)
|
|
|
|
|
|
|
|
# Compile time definitions required by the project
|
2022-06-30 17:24:31 +00:00
|
|
|
target_compile_definitions(${PROJECT_NAME} PRIVATE BUILD_PROJECT_NAME="${PROJECT_NAME}")
|
|
|
|
target_compile_definitions(${PROJECT_NAME} PRIVATE BUILD_PROJECT_ORGANIZATION_DOMAIN="${PROJECT_ORGANIZATION_DOMAIN}")
|
|
|
|
target_compile_definitions(${PROJECT_NAME} PRIVATE BUILD_PROJECT_ORGANIZATION_NAME="${PROJECT_ORGANIZATION_NAME}")
|
|
|
|
target_compile_definitions(${PROJECT_NAME} PRIVATE BUILD_PROJECT_APPLICATION_NAME="${PROJECT_APPLICATION_NAME}")
|
2022-05-10 20:10:34 +00:00
|
|
|
|
|
|
|
target_compile_definitions(${PROJECT_NAME} PRIVATE BUILD_BINARY_DIR=${CMAKE_BINARY_DIR})
|
|
|
|
target_compile_definitions(${PROJECT_NAME} PRIVATE BUILD_SOURCE_DIR=${CMAKE_SOURCE_DIR})
|
|
|
|
|
2022-05-31 21:26:41 +00:00
|
|
|
add_subdirectory(qml/Status/Application/Navigation)
|
2022-05-10 20:10:34 +00:00
|
|
|
add_subdirectory(src)
|
|
|
|
|
|
|
|
include(${CMAKE_SOURCE_DIR}/cmake/platform_specific.cmake)
|
|
|
|
string(TOLOWER ${PROJECT_ORGANIZATION_NAME} URL_ORGANIZATION_NAME)
|
|
|
|
configure_app_os_specific(${PROJECT_NAME} ${URL_ORGANIZATION_NAME} ${PROJECT_ORGANIZATION_DOMAIN} ${PROJECT_VERSION_MAJOR} ${PROJECT_VERSION_MINOR} ${PROJECT_VERSION_PATCH})
|
|
|
|
|
|
|
|
target_compile_definitions(${PROJECT_NAME}
|
|
|
|
PRIVATE
|
|
|
|
$<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
|
|
PRIVATE
|
|
|
|
Qt6::Quick
|
|
|
|
|
2022-07-04 21:14:13 +00:00
|
|
|
Status::Application::Navigation
|
2022-05-31 21:26:41 +00:00
|
|
|
|
2022-05-10 20:10:34 +00:00
|
|
|
# TODO: Use Status:: namespace
|
2022-07-04 21:14:13 +00:00
|
|
|
Status::ApplicationCore
|
|
|
|
Status::Helpers
|
|
|
|
Status::Onboarding
|
|
|
|
Status::Assets
|
|
|
|
Status::StatusQ
|
|
|
|
Status::StatusGoQt
|
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
|
|
|
|
${PROJECT_NAME}
|
|
|
|
RUNTIME
|
2022-07-04 21:14:13 +00:00
|
|
|
)
|