# SPDX-License-Identifier: GPL-2.0-or-later
# SPDX-FileCopyrightText: Copyright (C) 2026 Max A. Vilkki a.k.a. codise
#
# player_probe: a manual check of the Player on a real device (plays a tune, seeks, switches
# engines, prints snapshots) and a benchmark of seeks on real tunes (--bench). Not a CTest
# entry, since it needs tunes and makes sound. Built together with the tests so it keeps
# compiling; never installed or shipped.

add_executable(player_probe main.cpp)
target_link_libraries(player_probe PRIVATE flipsid::player ext::sidplayfp)
flipsid_configure_target(player_probe)
# tools/common: the UTF-8 command line (Windows reads it from the wide one, with shell32).
target_include_directories(player_probe PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/../common")
if(WIN32)
    target_link_libraries(player_probe PRIVATE shell32)
endif()
