2020-10-25 18:58:02 +00:00
|
|
|
cmake_minimum_required(VERSION 3.11)
|
|
|
|
project(harbour-sailfin)
|
|
|
|
set (CMAKE_CXX_STANDARD 17)
|
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
2020-10-25 23:14:46 +00:00
|
|
|
cmake_policy(SET CMP0048 NEW)
|
2021-03-05 14:34:10 +00:00
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
2020-10-25 18:58:02 +00:00
|
|
|
|
|
|
|
# Options
|
2021-02-17 18:42:10 +00:00
|
|
|
option(PLATFORM_SAILFISHOS "Build SailfishOS version of application" OFF)
|
|
|
|
option(PLATFORM_QTQUICK "Build QtQuick version of application" ON)
|
2020-10-25 18:58:02 +00:00
|
|
|
|
2021-03-19 19:57:04 +00:00
|
|
|
if (NOT SAILFIN_VERSION)
|
|
|
|
set(SAILFIN_VERSION "1.0.0")
|
|
|
|
endif()
|
|
|
|
|
2021-02-17 01:28:37 +00:00
|
|
|
if(PLATFORM_SAILFISHOS)
|
2020-10-25 18:58:02 +00:00
|
|
|
# Hardcode this less?
|
|
|
|
set(CMAKE_INSTALL_LIBDIR "${CMAKE_INSTALL_PREFIX}/share/harbour-sailfin/lib")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_subdirectory(core)
|
2021-02-17 01:28:37 +00:00
|
|
|
if(PLATFORM_SAILFISHOS)
|
2020-10-25 18:58:02 +00:00
|
|
|
add_subdirectory(sailfish)
|
2021-02-17 01:28:37 +00:00
|
|
|
elseif(PLATFORM_QTQUICK)
|
2020-10-25 18:58:02 +00:00
|
|
|
add_subdirectory(qtquick)
|
|
|
|
endif()
|
2021-03-20 15:29:31 +00:00
|
|
|
|
|
|
|
include(FeatureSummary)
|
|
|
|
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
|