update test/CMakeLists.txt
This commit is contained in:
@@ -111,7 +111,7 @@ set_target_properties(yaze
|
|||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_subdirectory(test)
|
include(test/CMakeLists.txt)
|
||||||
|
|
||||||
# Yaze C API
|
# Yaze C API
|
||||||
add_library(yaze_c SHARED
|
add_library(yaze_c SHARED
|
||||||
|
|||||||
@@ -10,40 +10,34 @@ set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
|
|||||||
FetchContent_MakeAvailable(googletest)
|
FetchContent_MakeAvailable(googletest)
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
|
||||||
# Append the ../ prefix to the include directories
|
|
||||||
list(TRANSFORM YAZE_APP_GFX_SRC PREPEND "../")
|
|
||||||
list(TRANSFORM YAZE_APP_EMU_SRC PREPEND "../")
|
|
||||||
list(TRANSFORM YAZE_APP_CORE_SRC PREPEND "../")
|
|
||||||
list(TRANSFORM YAZE_GUI_SRC PREPEND "../")
|
|
||||||
|
|
||||||
add_executable(
|
add_executable(
|
||||||
yaze_test
|
yaze_test
|
||||||
yaze_test.cc
|
test/yaze_test.cc
|
||||||
emu/cpu_test.cc
|
test/libc_test.cc
|
||||||
# emu/spc700_test.cc
|
test/emu/cpu_test.cc
|
||||||
# emu/ppu_test.cc
|
test/emu/spc700_test.cc
|
||||||
gfx/compression_test.cc
|
test/emu/ppu_test.cc
|
||||||
gfx/snes_palette_test.cc
|
test/gfx/compression_test.cc
|
||||||
zelda3/room_object_test.cc
|
test/gfx/snes_palette_test.cc
|
||||||
../cli/command_handler.cc
|
test/zelda3/room_object_test.cc
|
||||||
../app/rom.cc
|
cli/command_handler.cc
|
||||||
../app/rom_test.cc
|
app/rom.cc
|
||||||
../app/core/common.cc
|
app/rom_test.cc
|
||||||
../app/core/labeling.cc
|
app/core/common.cc
|
||||||
../app/editor/utils/gfx_context.cc
|
app/core/labeling.cc
|
||||||
|
app/editor/utils/gfx_context.cc
|
||||||
${YAZE_APP_EMU_SRC}
|
${YAZE_APP_EMU_SRC}
|
||||||
${YAZE_APP_GFX_SRC}
|
${YAZE_APP_GFX_SRC}
|
||||||
${YAZE_GUI_SRC}
|
${YAZE_GUI_SRC}
|
||||||
${IMGUI_FILE_DLG_PATH}/ImGuiFileDialog.cpp
|
lib/imgui/misc/cpp/imgui_stdlib.cpp
|
||||||
../lib/imgui/misc/cpp/imgui_stdlib.cpp
|
|
||||||
# ${ASAR_STATIC_SRC}
|
# ${ASAR_STATIC_SRC}
|
||||||
)
|
)
|
||||||
|
|
||||||
target_include_directories(
|
target_include_directories(
|
||||||
yaze_test PUBLIC
|
yaze_test PUBLIC
|
||||||
../
|
app/
|
||||||
../app/
|
lib/
|
||||||
../lib/
|
|
||||||
${SDL2_INCLUDE_DIR}
|
${SDL2_INCLUDE_DIR}
|
||||||
${PNG_INCLUDE_DIRS}
|
${PNG_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
@@ -56,6 +50,7 @@ target_link_libraries(
|
|||||||
${GLEW_LIBRARIES}
|
${GLEW_LIBRARIES}
|
||||||
${OPENGL_LIBRARIES}
|
${OPENGL_LIBRARIES}
|
||||||
${CMAKE_DL_LIBS}
|
${CMAKE_DL_LIBS}
|
||||||
|
yaze_c
|
||||||
ImGuiTestEngine
|
ImGuiTestEngine
|
||||||
ImGui
|
ImGui
|
||||||
gmock_main
|
gmock_main
|
||||||
|
|||||||
Reference in New Issue
Block a user