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

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