chore: Update test engine linkage and include integration::TestEditor in yaze_test

This commit is contained in:
scawful
2024-08-13 20:47:06 -04:00
parent e2168cc939
commit beb8dd50b8
2 changed files with 13 additions and 15 deletions

11
cmake/gtest.cmake Normal file
View File

@@ -0,0 +1,11 @@
# GoogleTest ------------------------------------------------------------------
include(FetchContent)
FetchContent_Declare(
googletest
URL https://github.com/google/googletest/archive/03597a01ee50ed33e9dfd640b249b4be3799d395.zip
)
# For Windows: Prevent overriding the parent project's compiler/linker settings
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)
enable_testing()

View File

@@ -1,26 +1,13 @@
# GoogleTest ------------------------------------------------------------------
include(FetchContent)
FetchContent_Declare(
googletest
URL https://github.com/google/googletest/archive/03597a01ee50ed33e9dfd640b249b4be3799d395.zip
)
# For Windows: Prevent overriding the parent project's compiler/linker settings
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)
enable_testing()
include(../cmake/gtest.cmake)
add_executable(
yaze_test
test/yaze_test.cc
test/libc_test.cc
test/rom_test.cc
# test/emu/cpu_test.cc
# test/emu/spc700_test.cc
# test/emu/ppu_test.cc
test/gfx/compression_test.cc
test/gfx/snes_palette_test.cc
test/integration/test_editor.cc
test/zelda3/room_object_test.cc
test/zelda3/sprite_builder_test.cc
cli/command_handler.cc