Files
86Box/src/cdrom/CMakeLists.txt

40 lines
1.0 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.
2024-09-04 18:34:06 -04:00
# Copyright 2024 Jasmine Iwanek.
2021-01-12 18:05:25 +01:00
#
2024-07-05 16:28:01 +06:00
find_package(PkgConfig REQUIRED)
pkg_check_modules(SNDFILE REQUIRED IMPORTED_TARGET sndfile)
2024-09-04 18:34:06 -04:00
add_library(cdrom OBJECT
cdrom.c
cdrom_image_backend.c
cdrom_image_viso.c
cdrom_image.c
cdrom_ioctl.c
)
2024-07-05 16:28:01 +06:00
target_link_libraries(86Box PkgConfig::SNDFILE)
2024-08-09 20:10:27 -04:00
if(CDROM_MITSUMI)
target_compile_definitions(cdrom PRIVATE USE_CDROM_MITSUMI)
target_sources(cdrom PRIVATE cdrom_mitsumi.c)
endif()
2024-07-05 16:28:01 +06:00
if (WIN32)
# MSYS2
2024-07-05 16:28:01 +06:00
target_link_libraries(86Box -static ${SNDFILE_STATIC_LIBRARIES})
endif()