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)
|
2020-10-25 18:58:02 +00:00
|
|
|
|
|
|
|
# Options
|
|
|
|
option(SAILFISHOS "Build SailfishOS version of application")
|
|
|
|
option(PLATFORM_QTQUICK "Build QtQuick version of application")
|
|
|
|
|
|
|
|
if(SAILFISHOS)
|
|
|
|
# Hardcode this less?
|
|
|
|
set(CMAKE_INSTALL_LIBDIR "${CMAKE_INSTALL_PREFIX}/share/harbour-sailfin/lib")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_subdirectory(core)
|
|
|
|
if(SAILFISHOS)
|
|
|
|
add_subdirectory(sailfish)
|
|
|
|
else()
|
|
|
|
add_subdirectory(qtquick)
|
|
|
|
endif()
|