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

if(BUILD_TESTING)
    add_test_executable(guest_face_detection_output_tests ${LIBS_INCLUDE_DIR}/tests/GuestFaceDetectionOutput.cpp)
    target_include_directories(guest_face_detection_output_tests PRIVATE ${LIBS_INCLUDE_DIR})
    target_link_libraries(guest_face_detection_output_tests PRIVATE libSceFace libc)
    configure_windows_unwind(guest_face_detection_output_tests)
    add_test(NAME guest_face_detection_output COMMAND guest_face_detection_output_tests)
    set_tests_properties(guest_face_detection_output PROPERTIES TIMEOUT 20)
    if(WIN32)
        set_tests_properties(guest_face_detection_output PROPERTIES ENVIRONMENT_MODIFICATION
            "PATH=path_list_prepend:$<TARGET_FILE_DIR:libSceFace>;PATH=path_list_prepend:$<TARGET_FILE_DIR:libc>")
    endif()
endif()
