mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-29 06:57:46 +00:00
Don't deploy applications on Flatpak
This commit is contained in:
parent
328bcb5572
commit
6ae749a12f
2 changed files with 13 additions and 7 deletions
|
@ -4,6 +4,9 @@
|
||||||
cmake_minimum_required(VERSION 3.25)
|
cmake_minimum_required(VERSION 3.25)
|
||||||
project(Novus VERSION 0.1.0 LANGUAGES CXX)
|
project(Novus VERSION 0.1.0 LANGUAGES CXX)
|
||||||
|
|
||||||
|
# build options used for distributors
|
||||||
|
option(BUILD_FLATPAK "Build for Flatpak." OFF)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 20)
|
set(CMAKE_CXX_STANDARD 20)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
|
||||||
|
|
|
@ -65,6 +65,8 @@ ecm_add_app_icon(novus-launcher
|
||||||
${CMAKE_SOURCE_DIR}/resources/256-launcher.png
|
${CMAKE_SOURCE_DIR}/resources/256-launcher.png
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# the current tooling completely breaks in Flatpak, and is unnecessary there anyway
|
||||||
|
if (NOT BUILD_FLATPAK)
|
||||||
# We only need to call deploy on one executable
|
# We only need to call deploy on one executable
|
||||||
qt_generate_deploy_app_script(
|
qt_generate_deploy_app_script(
|
||||||
TARGET novus-launcher
|
TARGET novus-launcher
|
||||||
|
@ -72,3 +74,4 @@ qt_generate_deploy_app_script(
|
||||||
NO_UNSUPPORTED_PLATFORM_ERROR
|
NO_UNSUPPORTED_PLATFORM_ERROR
|
||||||
)
|
)
|
||||||
install(SCRIPT ${deploy_script})
|
install(SCRIPT ${deploy_script})
|
||||||
|
endif()
|
Loading…
Add table
Reference in a new issue