Update CMakeLists.txt

test build target and CTest registration.
This commit is contained in:
carman24r
2026-09-29 16:23:15 -04:00
committed by GitHub
parent 883bb7ad13
commit bf25ec499e
+13
View File
@@ -68,3 +68,16 @@ target_include_directories(agc_command_tests PRIVATE ${LIBS_INCLUDE_DIR})
target_link_libraries(agc_command_tests PRIVATE libSceAgc libc)
configure_windows_unwind(agc_command_tests)
configure_windows_unwind(libSceAgc)
add_executable(agc_register_command_tests EXCLUDE_FROM_ALL
tests/RegisterCommands.cpp
Command/src/Packet.cpp
DcbState/src/Registers.cpp
Patch/src/IndirectRegisters.cpp
)
target_include_directories(agc_register_command_tests PRIVATE ${LIBS_INCLUDE_DIR})
configure_windows_unwind(agc_register_command_tests)
if(BUILD_TESTING)
set_target_properties(agc_register_command_tests PROPERTIES EXCLUDE_FROM_ALL FALSE)
add_test(NAME agc_register_command_tests COMMAND agc_register_command_tests)
endif()