summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-11-03 18:12:45 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-11-03 18:12:45 +0200
commit8913f836cba97fdd509314456eca9fb0df7aa035 (patch)
treeab09a9de3d75920687f1f12b576870b34f2b976b /CMakeLists.txt
parentdb0f86a18a97fc719a1d7afbb971bf63594d0829 (diff)
parente84188ee0e03d60b9cd20df72ac10701dedae9e6 (diff)
Merge branch 'dev' of skyjake.fi:gemini/lagrange into dev
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt29
1 files changed, 1 insertions, 28 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6abfd094..378a1bba 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,7 +18,7 @@
18cmake_minimum_required (VERSION 3.9) 18cmake_minimum_required (VERSION 3.9)
19 19
20project (Lagrange 20project (Lagrange
21 VERSION 1.8.0 21 VERSION 1.8.1
22 DESCRIPTION "A Beautiful Gemini Client" 22 DESCRIPTION "A Beautiful Gemini Client"
23 LANGUAGES C 23 LANGUAGES C
24) 24)
@@ -65,25 +65,6 @@ include (Depends.cmake)
65# Package resources. 65# Package resources.
66message (STATUS "Preparing resources...") 66message (STATUS "Preparing resources...")
67make_fontpack (res/default.fontpack) 67make_fontpack (res/default.fontpack)
68# Fonts to install as separate files.
69set (FONTPACKS
70# arabic.fontpack
71# cjk.fontpack
72# firasans.fontpack
73# literata.fontpack
74# nunito.fontpack
75# tinos.fontpack
76)
77foreach (fp ${FONTPACKS})
78 make_fontpack (res/${fp})
79 set_source_files_properties (${CMAKE_BINARY_DIR}/${fp}
80 PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
81endforeach (fp)
82macro (install_fonts dst)
83 foreach (fp ${FONTPACKS})
84 install (FILES ${CMAKE_BINARY_DIR}/${fp} DESTINATION ${dst})
85 endforeach (fp)
86endmacro ()
87set (EMBED_RESOURCES 68set (EMBED_RESOURCES
88 res/about/about.gmi 69 res/about/about.gmi
89 res/about/help.gmi 70 res/about/help.gmi
@@ -240,11 +221,6 @@ set (SOURCES
240 ${CMAKE_CURRENT_BINARY_DIR}/embedded.h 221 ${CMAKE_CURRENT_BINARY_DIR}/embedded.h
241 ${CMAKE_CURRENT_BINARY_DIR}/resources.lgr 222 ${CMAKE_CURRENT_BINARY_DIR}/resources.lgr
242) 223)
243if (APPLE)
244 foreach (fp ${FONTPACKS})
245 list (APPEND SOURCES ${CMAKE_BINARY_DIR}/${fp})
246 endforeach (fp)
247endif ()
248if (ENABLE_IPC) 224if (ENABLE_IPC)
249 list (APPEND SOURCES 225 list (APPEND SOURCES
250 src/ipc.c 226 src/ipc.c
@@ -444,7 +420,6 @@ if (MSYS)
444 if (NOT ENABLE_RESOURCE_EMBED) 420 if (NOT ENABLE_RESOURCE_EMBED)
445 install (FILES ${EMB_BIN} DESTINATION .) 421 install (FILES ${EMB_BIN} DESTINATION .)
446 endif () 422 endif ()
447 install_fonts (.)
448 install (PROGRAMS 423 install (PROGRAMS
449 ${SDL2_LIBDIR}/SDL2.dll 424 ${SDL2_LIBDIR}/SDL2.dll
450 res/urlopen.bat 425 res/urlopen.bat
@@ -460,7 +435,6 @@ elseif (HAIKU)
460 LAGRANGE_EMB_BIN="${CMAKE_INSTALL_PREFIX}/resources.lgr") 435 LAGRANGE_EMB_BIN="${CMAKE_INSTALL_PREFIX}/resources.lgr")
461 install (FILES ${EMB_BIN} DESTINATION .) 436 install (FILES ${EMB_BIN} DESTINATION .)
462 endif () 437 endif ()
463 install_fonts (.)
464elseif (UNIX AND NOT APPLE) 438elseif (UNIX AND NOT APPLE)
465 set_target_properties (app PROPERTIES 439 set_target_properties (app PROPERTIES
466 INSTALL_RPATH_USE_LINK_PATH YES 440 INSTALL_RPATH_USE_LINK_PATH YES
@@ -493,5 +467,4 @@ MimeType=x-scheme-handler/gemini;x-scheme-handler/gopher;
493 endif () 467 endif ()
494 install (FILES ${EMB_BIN} DESTINATION share/lagrange) 468 install (FILES ${EMB_BIN} DESTINATION share/lagrange)
495 endif () 469 endif ()
496 install_fonts (share/lagrange)
497endif () 470endif ()