* OpenAL backend is enabled by default on Haiku * bswap include now makes use of builtins if they exist * Use a local fgetws method for Haiku to avoid crashes * OpenGL renderers are completely disabled on Haiku (they do not work) * Software renderer is a widget, not a window on Haiku (fixes blank screen) * Add option to disable System MIDI at compile time
31 lines
907 B
CMake
31 lines
907 B
CMake
#
|
|
# 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.
|
|
#
|
|
# This file is part of the 86Box distribution.
|
|
#
|
|
# CMake build script.
|
|
#
|
|
# Authors: Cacodemon345
|
|
# David Hrdlička, <hrdlickadavid@outlook.com>
|
|
#
|
|
# Copyright 2021 Cacodemon345.
|
|
# Copyright 2021 David Hrdlička.
|
|
#
|
|
|
|
add_library(plat OBJECT unix.c)
|
|
|
|
if (NOT CPPTHREADS)
|
|
target_sources(plat PRIVATE unix_thread.c)
|
|
endif()
|
|
|
|
set(THREADS_PREFER_PTHREAD_FLAG TRUE)
|
|
find_package(Threads REQUIRED)
|
|
target_link_libraries(86Box Threads::Threads)
|
|
|
|
add_library(ui OBJECT unix_sdl.c unix_cdrom.c)
|
|
target_compile_definitions(ui PUBLIC _FILE_OFFSET_BITS=64)
|
|
target_link_libraries(ui ${CMAKE_DL_LIBS})
|