cmake_minimum_required(VERSION 3.20)
project(ac97_startup_fixture C)
enable_testing()
if(NOT WIN32)
  message(FATAL_ERROR "The AC97 trap fixture exercises Windows page-protection publication")
endif()
add_executable(ac97_startup test_main.c)
target_include_directories(ac97_startup PRIVATE ../../tools/xboxrecomp/src/platform)
if(DEFINED AC97_FIXTURE_SOURCE)
  target_compile_definitions(ac97_startup PRIVATE AC97_FIXTURE_SOURCE="${AC97_FIXTURE_SOURCE}")
endif()
add_test(NAME ac97_startup COMMAND ac97_startup)
