2022-05-10 23:10:34 +03: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 15:29:19 -04:00
|
|
|
|
|
|
|
project(status-desktop
|
2022-05-10 23:10:34 +03:00
|
|
|
VERSION ${STATUS_VERSION}
|
2022-01-06 15:29:19 -04:00
|
|
|
LANGUAGES CXX)
|
|
|
|
|
2022-07-21 20:04:11 +02:00
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
|
|
|
|
2022-05-10 23:10:34 +03:00
|
|
|
set(PROJECT_ORGANIZATION_DOMAIN "status.im")
|
|
|
|
set(PROJECT_ORGANIZATION_NAME "Status")
|
|
|
|
set(PROJECT_APPLICATION_NAME "Status Desktop")
|
2022-01-06 15:29:19 -04:00
|
|
|
|
2022-05-10 23:10:34 +03:00
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
2022-01-06 15:29:19 -04:00
|
|
|
|
2022-05-10 23:10:34 +03:00
|
|
|
include(CTest)
|
|
|
|
enable_testing()
|
2022-01-06 15:29:19 -04:00
|
|
|
|
2022-05-10 23:10:34 +03:00
|
|
|
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm64" AND APPLE)
|
|
|
|
set(STATUSGO_FORCE_ARCH ${CMAKE_HOST_SYSTEM_PROCESSOR})
|
2022-01-06 15:29:19 -04:00
|
|
|
endif()
|
|
|
|
|
2022-05-10 23:10:34 +03:00
|
|
|
# status-desktop application
|
|
|
|
add_subdirectory(vendor)
|
2022-07-13 18:45:18 +02:00
|
|
|
|
|
|
|
add_subdirectory(libs/ApplicationCore)
|
|
|
|
add_subdirectory(libs/Assets)
|
2022-08-03 14:43:33 +02:00
|
|
|
add_subdirectory(libs/ChatSection)
|
2022-07-13 18:45:18 +02:00
|
|
|
add_subdirectory(libs/Helpers)
|
|
|
|
add_subdirectory(libs/Onboarding)
|
2022-07-15 09:30:16 +02:00
|
|
|
add_subdirectory(libs/Wallet)
|
2022-07-13 18:45:18 +02:00
|
|
|
add_subdirectory(libs/StatusGoQt)
|
|
|
|
add_subdirectory(libs/StatusQ)
|
|
|
|
|
2022-05-10 23:10:34 +03:00
|
|
|
add_subdirectory(app)
|
2022-07-13 18:45:18 +02:00
|
|
|
|
2022-07-07 20:16:59 +02:00
|
|
|
add_subdirectory(test/libs/StatusGoQt)
|
2022-07-13 18:45:18 +02:00
|
|
|
|
2022-05-10 23:10:34 +03:00
|
|
|
# TODO: temporary not to duplicate resources until we switch to c++ app then it can be refactored
|
2022-07-04 23:14:13 +02:00
|
|
|
add_subdirectory(resources)
|
2022-05-10 23:10:34 +03:00
|
|
|
add_subdirectory(ui/imports/assets)
|
2022-05-31 23:26:41 +02:00
|
|
|
add_subdirectory(ui/fonts)
|