Debian Codegraph @

Unicode/CMakeLists.txt

raw
1 # Distributed under the original FontForge BSD 3-clause license
2
3 add_library(gunicode OBJECT
4 ArabicForms.c
5 char.c
6 memory.cpp
7 ucharmap.cpp
8 unialt.c
9 uninames.c
10 ustring.cpp
11 utype.c
12 )
13
14 if(BUILD_SHARED_LIBS)
15 set_property(TARGET gunicode PROPERTY POSITION_INDEPENDENT_CODE ON)
16 endif()
17
18 if(${CMAKE_VERSION} VERSION_LESS "3.12.0")
19 make_object_interface(gunicode
20 fontforge_common_headers
21 Iconv::Iconv
22 $<$<BOOL:${Intl_FOUND}>:Intl::Intl>
23 )
24 else()
25 target_link_libraries(gunicode
26 PUBLIC
27 fontforge_common_headers
28 Iconv::Iconv
29 $<$<BOOL:${Intl_FOUND}>:Intl::Intl>
30 )
31 endif()
32
33 target_compile_options(gunicode PRIVATE ${FONTFORGE_EXTRA_CFLAGS})