From 7b68f17156842a052ec8d9094d47cbbb5744e3a1 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Tue, 21 Jan 2020 04:55:54 +0400 Subject: [PATCH] Add macro for disabling fonts bundling --- options.cmake | 7 +++++++ variables.cmake | 1 + 2 files changed, 8 insertions(+) diff --git a/options.cmake b/options.cmake index a207f28..47102c0 100644 --- a/options.cmake +++ b/options.cmake @@ -26,6 +26,13 @@ if (DESKTOP_APP_USE_PACKAGED) ) endif() +if (DESKTOP_APP_USE_PACKAGED_FONTS) + target_compile_definitions(common_options + INTERFACE + DESKTOP_APP_USE_PACKAGED_FONTS + ) +endif() + if (WIN32) include(cmake/options_win.cmake) elseif (APPLE) diff --git a/variables.cmake b/variables.cmake index c5a91a0..6fc50ed 100644 --- a/variables.cmake +++ b/variables.cmake @@ -23,6 +23,7 @@ if (DESKTOP_APP_SPECIAL_TARGET STREQUAL "osx") endif() option(DESKTOP_APP_USE_PACKAGED_RLOTTIE "Find rlottie using CMake instead of bundled one." ${DESKTOP_APP_USE_PACKAGED}) +option(DESKTOP_APP_USE_PACKAGED_FONTS "Use preinstalled fonts instead of bundled one." ${DESKTOP_APP_USE_PACKAGED}) if (DESKTOP_APP_SPECIAL_TARGET STREQUAL "" OR DESKTOP_APP_SPECIAL_TARGET STREQUAL "uwp"