2021-01-12 18:05:25 +01:00
|
|
|
#
|
2022-11-13 16:37:58 -05:00
|
|
|
# 86Box A hypervisor and IBM PC system emulator that specializes in
|
|
|
|
|
# running old operating systems and software designed for IBM
|
|
|
|
|
# PC systems and compatibles from 1981 through fairly recent
|
|
|
|
|
# system designs based on the PCI bus.
|
2021-01-12 18:05:25 +01:00
|
|
|
#
|
2022-11-13 16:37:58 -05:00
|
|
|
# This file is part of the 86Box distribution.
|
2021-01-12 18:05:25 +01:00
|
|
|
#
|
2022-11-13 16:37:58 -05:00
|
|
|
# CMake build script.
|
2021-01-12 18:05:25 +01:00
|
|
|
#
|
2022-11-13 16:37:58 -05:00
|
|
|
# Authors: David Hrdlička, <hrdlickadavid@outlook.com>
|
2021-01-12 18:05:25 +01:00
|
|
|
#
|
2023-01-06 15:36:29 -05:00
|
|
|
# Copyright 2020-2021 David Hrdlička.
|
2021-01-12 18:05:25 +01:00
|
|
|
#
|
|
|
|
|
|
2022-02-18 21:38:51 -05:00
|
|
|
add_library(print OBJECT png.c prt_cpmap.c prt_escp.c prt_text.c prt_ps.c)
|
2023-04-14 13:48:14 -04:00
|
|
|
|
|
|
|
|
if(APPLE)
|
|
|
|
|
find_library(GHOSTSCRIPT_LIB gs)
|
|
|
|
|
if (NOT GHOSTSCRIPT_LIB)
|
|
|
|
|
message(WARNING "Could not find ghostscript. The library will not be bundled and any related features will not work.")
|
|
|
|
|
endif()
|
2023-07-15 22:54:33 -03:00
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
find_package(PkgConfig REQUIRED)
|
|
|
|
|
pkg_check_modules(FREETYPE REQUIRED IMPORTED_TARGET freetype2)
|
|
|
|
|
target_link_libraries(86Box PkgConfig::FREETYPE)
|
|
|
|
|
if(STATIC_BUILD)
|
2023-07-16 00:01:59 -03:00
|
|
|
if(QT)
|
|
|
|
|
# Qt provides its own version of harfbuzz which leads to duplicated symbols.
|
|
|
|
|
target_link_options(86Box PRIVATE "LINKER:--allow-multiple-definition")
|
|
|
|
|
endif()
|
2023-07-15 22:54:33 -03:00
|
|
|
target_link_libraries(86Box -static ${FREETYPE_STATIC_LIBRARIES})
|
|
|
|
|
endif()
|