From be8fcebadb4a12844dd367d1f7da03bbe920ea0a Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sun, 5 Dec 2021 10:25:44 +0200 Subject: iOS: Custom editor font and adjusted positioning --- CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 4200c7c5..2d11e43e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -104,6 +104,12 @@ endif () set (EMB_BIN ${CMAKE_CURRENT_BINARY_DIR}/resources.lgr) make_resources (${EMB_BIN} ${RESOURCES}) set_source_files_properties (${EMB_BIN} PROPERTIES MACOSX_PACKAGE_LOCATION Resources) +if (IOS) + set (EMB_FONTS res/fonts/SourceSans3-Regular.ttf) + set_source_files_properties (${EMB_FONTS} + PROPERTIES MACOSX_PACKAGE_LOCATION Resources + ) +endif () # Source files. set (SOURCES @@ -287,7 +293,7 @@ else () endif () # Target. -add_executable (app ${SOURCES} ${RESOURCES}) +add_executable (app ${SOURCES} ${RESOURCES} ${EMB_FONTS}) set_property (TARGET app PROPERTY C_STANDARD 11) if (TARGET ext-deps) add_dependencies (app ext-deps) -- cgit v1.2.3