2021-12-20 15:03:42 +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-12-20 15:03:42 +01:00
|
|
|
#
|
2022-11-13 16:37:58 -05:00
|
|
|
# This file is part of the 86Box distribution.
|
2021-12-20 15:03:42 +01:00
|
|
|
#
|
2022-11-13 16:37:58 -05:00
|
|
|
# CMake build script.
|
2021-12-20 15:03:42 +01:00
|
|
|
#
|
2022-11-13 16:37:58 -05:00
|
|
|
# Authors: Cacodemon345
|
|
|
|
|
# David Hrdlička, <hrdlickadavid@outlook.com>
|
2024-09-04 18:34:06 -04:00
|
|
|
# Jasmine Iwanek, <jriwanek@gmail.com>
|
2021-12-20 15:03:42 +01:00
|
|
|
#
|
2022-12-20 19:25:51 -05:00
|
|
|
# Copyright 2021 Cacodemon345.
|
|
|
|
|
# Copyright 2021 David Hrdlička.
|
2023-02-14 20:37:58 -05:00
|
|
|
# Copyright 2021 Andreas J. Reichel.
|
2024-09-04 18:34:06 -04:00
|
|
|
# Copyright 2021-2024 Jasmine Iwanek.
|
2021-12-20 15:03:42 +01:00
|
|
|
#
|
|
|
|
|
|
2024-09-04 18:34:06 -04:00
|
|
|
add_library(plat OBJECT
|
|
|
|
|
unix.c
|
|
|
|
|
unix_serial_passthrough.c
|
|
|
|
|
unix_netsocket.c
|
|
|
|
|
)
|
2021-09-23 23:03:26 +02:00
|
|
|
|
2021-12-17 06:59:53 +01:00
|
|
|
if (NOT CPPTHREADS)
|
|
|
|
|
target_sources(plat PRIVATE unix_thread.c)
|
|
|
|
|
endif()
|
2021-12-17 07:41:07 +01:00
|
|
|
|
|
|
|
|
set(THREADS_PREFER_PTHREAD_FLAG TRUE)
|
|
|
|
|
find_package(Threads REQUIRED)
|
|
|
|
|
target_link_libraries(86Box Threads::Threads)
|
2021-12-17 08:57:00 +01:00
|
|
|
|
2024-09-04 18:34:06 -04:00
|
|
|
add_library(ui OBJECT
|
|
|
|
|
unix_sdl.c
|
|
|
|
|
unix_cdrom.c
|
|
|
|
|
dummy_cdrom_ioctl.c
|
|
|
|
|
)
|
2021-12-17 08:57:00 +01:00
|
|
|
target_compile_definitions(ui PUBLIC _FILE_OFFSET_BITS=64)
|
2022-03-11 12:03:54 +06:00
|
|
|
target_link_libraries(ui ${CMAKE_DL_LIBS})
|
2022-04-08 00:58:38 +02:00
|
|
|
|
|
|
|
|
if(APPLE)
|
|
|
|
|
target_sources(plat PRIVATE macOSXGlue.m)
|
|
|
|
|
endif()
|