File: CMakeLists.txt

package info (click to toggle)
fontforge 1%3A20230101~dfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 63,260 kB
  • sloc: ansic: 462,618; python: 6,916; cpp: 214; objc: 122; sh: 101; makefile: 55; xml: 11
file content (33 lines) | stat: -rw-r--r-- 631 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Distributed under the original FontForge BSD 3-clause license

add_library(gunicode OBJECT
  ArabicForms.c
  char.c
  memory.c
  ucharmap.c
  unialt.c
  uninames.c
  ustring.c
  utype.c
)

if(BUILD_SHARED_LIBS)
  set_property(TARGET gunicode PROPERTY POSITION_INDEPENDENT_CODE ON)
endif()

if(${CMAKE_VERSION} VERSION_LESS "3.12.0")
  make_object_interface(gunicode
    fontforge_common_headers
    Iconv::Iconv
    Intl::Intl
  )
else()
  target_link_libraries(gunicode
    PUBLIC
      fontforge_common_headers
      Iconv::Iconv
      Intl::Intl
  )
endif()

target_compile_options(gunicode PRIVATE ${FONTFORGE_EXTRA_CFLAGS})