Files
86Box/src/device/CMakeLists.txt

107 lines
2.3 KiB
CMake
Raw Normal View History

2021-01-12 18:05:25 +01: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
#
# This file is part of the 86Box distribution.
2021-01-12 18:05:25 +01:00
#
# CMake build script.
2021-01-12 18:05:25 +01:00
#
# Authors: David Hrdlička, <hrdlickadavid@outlook.com>
2024-09-04 18:34:06 -04:00
# Jasmine Iwanek, <jriwanek@gmail.com>
2021-01-12 18:05:25 +01:00
#
2023-01-06 15:36:29 -05:00
# Copyright 2020-2021 David Hrdlička.
2023-02-14 20:37:58 -05:00
# Copyright 2021 Andreas J. Reichel.
# Copyright 2021-2025 Jasmine Iwanek.
2021-01-12 18:05:25 +01:00
#
2024-09-04 18:34:06 -04:00
add_library(dev OBJECT
access_bus.c
2024-09-04 18:34:06 -04:00
bugger.c
cartridge.c
cassette.c
clock_ics9xxx.c
dell_jumper.c
2024-09-04 18:34:06 -04:00
hasp.c
hwm.c
hwm_gl518sm.c
2024-09-04 18:34:06 -04:00
hwm_lm75.c
hwm_lm78.c
hwm_vt82c686.c
i2c.c
i2c_gpio.c
2024-09-04 18:34:06 -04:00
ibm_5161.c
isamem.c
2025-05-04 21:44:53 -04:00
isarom.c
2024-09-04 18:34:06 -04:00
isartc.c
isapnp.c
kbc_at.c
kbc_at_dev.c
2025-07-27 15:23:43 +02:00
kbc_xt.c
keyboard.c
keyboard_at.c
keyboard_xt.c
lpt.c
2024-09-04 18:34:06 -04:00
mouse.c
mouse_bus.c
mouse_microtouch_touchscreen.c
2024-09-04 18:34:06 -04:00
mouse_ps2.c
mouse_serial.c
mouse_upc.c
2024-09-04 18:34:06 -04:00
nec_mate_unk.c
novell_cardkey.c
pci_bridge.c
2024-09-04 18:34:06 -04:00
phoenix_486_jumper.c
postcard.c
radisys_config.c
serial.c
serial_passthrough.c
smbus_ali7101.c
smbus_piix4.c
smbus_sis5595.c
2025-06-09 18:30:50 +02:00
tulip_jumper.c
unittester.c
zenith_scratchpad.c
2024-09-04 18:34:06 -04:00
)
2021-01-12 18:22:40 +01:00
if(NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND NOT MSVC)
2023-08-11 22:29:53 +02:00
target_link_libraries(86Box atomic)
2023-08-11 18:31:36 -03:00
endif()
2023-08-11 22:29:53 +02:00
2022-01-26 19:03:12 -05:00
if(ISAMEM_RAMPAGE)
target_compile_definitions(dev PRIVATE USE_ISAMEM_RAMPAGE)
endif()
if(ISAMEM_IAB)
target_compile_definitions(dev PRIVATE USE_ISAMEM_IAB)
endif()
if(ISAMEM_BRAT)
target_compile_definitions(dev PRIVATE USE_ISAMEM_BRAT)
endif()
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
if(VFIO)
include(CheckIncludeFile)
check_include_file("linux/vfio.h" VFIO_AVAILABLE)
if(VFIO_AVAILABLE)
add_compile_definitions(USE_VFIO)
target_sources(dev PRIVATE vfio.c)
endif()
endif()
endif()
if(LASERXT)
target_compile_definitions(dev PRIVATE USE_LASERXT)
endif()
2024-08-08 19:13:20 -04:00
2024-08-08 19:28:36 -04:00
if(PCL)
target_compile_definitions(dev PRIVATE USE_PCL)
endif()
2024-08-08 19:13:20 -04:00
if(WACOM)
target_compile_definitions(dev PRIVATE USE_WACOM)
target_sources(dev PRIVATE mouse_wacom_tablet.c)
endif()