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

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