# Self-contained verification of the forwarding core (IPC + XInput hook).
# Reuses the hook's xinput_hook.cpp directly so it exercises the shipping code.
add_executable(hook_selftest
	hook_selftest.cpp
	${CMAKE_SOURCE_DIR}/hook/src/xinput_hook.cpp)

target_include_directories(hook_selftest PRIVATE ${CMAKE_SOURCE_DIR}/hook/src)

target_link_libraries(hook_selftest PRIVATE
	coop_common
	safetyhook::safetyhook
	xinput)

add_test(NAME hook_selftest COMMAND hook_selftest)
