# SPDX-License-Identifier: GPL-2.0-or-later
# SPDX-FileCopyrightText: Copyright (C) 2026 Max A. Vilkki a.k.a. codise
#
# sid_record: records SID playback through an audio interface for the playback comparisons
# (DESIGN §7.3): the capture CLI, its validation, and the session runner that drives
# flipSID, an Ultimate and ACID64. Not a CTest entry: it needs a sound device (its capture
# and check code is flipsid::recording, which the tests cover). Built together with the
# tests so it keeps compiling; never installed or shipped.

add_executable(sid_record
    main.cpp
    capture_cli.cpp
    players.cpp
    process.cpp
    session.cpp
    stop.cpp
)
target_include_directories(sid_record PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/../common")
target_link_libraries(sid_record PRIVATE
    flipsid::recording flipsid::output flipsid::common flipsid::ultimate flipsid::library ext::yyjson)
flipsid_configure_target(sid_record)
if(WIN32)
    target_link_libraries(sid_record PRIVATE shell32)
endif()
