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

if(BUILD_TESTING)
    add_test_executable(guest_remote_play_client_ipc_tests ${LIBS_INCLUDE_DIR}/tests/GuestRemotePlayClientIpc.cpp)
    target_include_directories(guest_remote_play_client_ipc_tests PRIVATE ${LIBS_INCLUDE_DIR})
    target_link_libraries(guest_remote_play_client_ipc_tests PRIVATE libSceRemotePlayClientIpc libc)
    configure_windows_unwind(guest_remote_play_client_ipc_tests)
    add_test(NAME guest_remote_play_client_ipc COMMAND guest_remote_play_client_ipc_tests)
    if(WIN32)
        set_tests_properties(guest_remote_play_client_ipc PROPERTIES ENVIRONMENT_MODIFICATION
            "PATH=path_list_prepend:$<TARGET_FILE_DIR:libSceRemotePlayClientIpc>")
    endif()
endif()
