2022-05-10 20:10:34 +00:00
|
|
|
# Provide general project configuration setup
|
|
|
|
#
|
|
|
|
cmake_minimum_required(VERSION 3.21)
|
|
|
|
|
|
|
|
set(STATUS_QT_VERSION 6.3)
|
|
|
|
set(STATUS_VERSION 0.6.0)
|
2022-01-06 19:29:19 +00:00
|
|
|
|
|
|
|
project(status-desktop
|
2022-05-10 20:10:34 +00:00
|
|
|
VERSION ${STATUS_VERSION}
|
2022-01-06 19:29:19 +00:00
|
|
|
LANGUAGES CXX)
|
|
|
|
|
2022-05-10 20:10:34 +00:00
|
|
|
set(PROJECT_ORGANIZATION_DOMAIN "status.im")
|
|
|
|
set(PROJECT_ORGANIZATION_NAME "Status")
|
|
|
|
set(PROJECT_APPLICATION_NAME "Status Desktop")
|
2022-01-06 19:29:19 +00:00
|
|
|
|
2022-05-10 20:10:34 +00:00
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
2022-01-06 19:29:19 +00:00
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
|
2022-05-10 20:10:34 +00:00
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
2022-01-06 19:29:19 +00:00
|
|
|
|
2022-05-10 20:10:34 +00:00
|
|
|
include(CTest)
|
|
|
|
enable_testing()
|
2022-01-06 19:29:19 +00:00
|
|
|
|
2022-05-10 20:10:34 +00:00
|
|
|
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm64" AND APPLE)
|
|
|
|
set(STATUSGO_FORCE_ARCH ${CMAKE_HOST_SYSTEM_PROCESSOR})
|
2022-01-06 19:29:19 +00:00
|
|
|
endif()
|
|
|
|
|
2022-05-10 20:10:34 +00:00
|
|
|
# status-desktop application
|
|
|
|
add_subdirectory(vendor)
|
2022-07-13 16:45:18 +00:00
|
|
|
|
|
|
|
add_subdirectory(libs/ApplicationCore)
|
|
|
|
add_subdirectory(libs/Assets)
|
|
|
|
add_subdirectory(libs/Helpers)
|
|
|
|
add_subdirectory(libs/Onboarding)
|
|
|
|
add_subdirectory(libs/StatusGoQt)
|
|
|
|
add_subdirectory(libs/StatusQ)
|
|
|
|
|
2022-05-10 20:10:34 +00:00
|
|
|
add_subdirectory(app)
|
2022-07-13 16:45:18 +00:00
|
|
|
|
2022-07-07 18:16:59 +00:00
|
|
|
add_subdirectory(test/libs/StatusGoQt)
|
2022-07-13 16:45:18 +00:00
|
|
|
|
2022-05-10 20:10:34 +00:00
|
|
|
# TODO: temporary not to duplicate resources until we switch to c++ app then it can be refactored
|
2022-07-04 21:14:13 +00:00
|
|
|
add_subdirectory(resources)
|
2022-05-10 20:10:34 +00:00
|
|
|
add_subdirectory(ui/imports/assets)
|
2022-05-31 21:26:41 +00:00
|
|
|
add_subdirectory(ui/fonts)
|