add_library(libSceVoiceQoS SHARED EXCLUDE_FROM_ALL Export.cpp)
target_include_directories(libSceVoiceQoS PRIVATE ${LIBS_INCLUDE_DIR})
configure_windows_unwind(libSceVoiceQoS)

if(BUILD_TESTING)
    add_test_executable(guest_voice_qos_tests ${LIBS_INCLUDE_DIR}/tests/GuestVoiceQoS.cpp)
    target_include_directories(guest_voice_qos_tests PRIVATE ${LIBS_INCLUDE_DIR})
    target_link_libraries(guest_voice_qos_tests PRIVATE libSceVoiceQoS libc)
    configure_windows_unwind(guest_voice_qos_tests)
    add_test(NAME guest_voice_qos COMMAND guest_voice_qos_tests 0x20000000)
    add_test(NAME guest_voice_qos_app_type_0x10000000 COMMAND guest_voice_qos_tests 0x10000000)
    if(WIN32)
        set_tests_properties(guest_voice_qos guest_voice_qos_app_type_0x10000000 PROPERTIES ENVIRONMENT_MODIFICATION
            "PATH=path_list_prepend:$<TARGET_FILE_DIR:libSceVoiceQoS>")
    endif()
endif()
