mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2024-11-22 09:15:18 +00:00
Chris Josten
727e50cae1
- Application could not be launched by the invoker because of some missing compiler flags (-rdynamic -pie) - Private libraries were not found due to incorrect rpath being set - Moved the qml list of files for sailfish from qtquick to sailfish (Stupid mistake I made because my editor doesn't really differentiate between different files with the same name in different folders)
23 lines
586 B
CMake
23 lines
586 B
CMake
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)
|
|
cmake_policy(SET CMP0048 NEW)
|
|
|
|
# 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()
|