mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-05 10:12:46 +00:00
Switched to a sane build system (CMake)
This commit is contained in:
parent
9cfd6d7ee2
commit
228bcfb685
36 changed files with 286 additions and 211 deletions
21
CMakeLists.txt
Normal file
21
CMakeLists.txt
Normal file
|
@ -0,0 +1,21 @@
|
|||
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)
|
||||
|
||||
# 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()
|
Loading…
Add table
Add a link
Reference in a new issue