add_library(libSceConnectAccountDialog SHARED EXCLUDE_FROM_ALL Export.cpp)
target_link_libraries(libSceConnectAccountDialog PRIVATE libSceIme)
target_include_directories(libSceConnectAccountDialog PRIVATE ${LIBS_INCLUDE_DIR})
configure_windows_unwind(libSceConnectAccountDialog)

if(BUILD_TESTING)
    add_test_executable(guest_connect_account_dialog_tests ${LIBS_INCLUDE_DIR}/tests/GuestConnectAccountDialog.cpp)
    target_include_directories(guest_connect_account_dialog_tests PRIVATE ${LIBS_INCLUDE_DIR})
    target_link_libraries(guest_connect_account_dialog_tests PRIVATE libSceConnectAccountDialog libSceIme)
    add_test(NAME guest_connect_account_dialog COMMAND guest_connect_account_dialog_tests)
    if(WIN32)
        set_tests_properties(guest_connect_account_dialog PROPERTIES ENVIRONMENT_MODIFICATION
            "PATH=path_list_prepend:$<TARGET_FILE_DIR:libSceConnectAccountDialog>;PATH=path_list_prepend:$<TARGET_FILE_DIR:libSceIme>")
    endif()
endif()
