- Add RenderDocCapture class for dynamic loading of renderdoc.dll - Support BeginCapture/EndCapture/TriggerCapture APIs - Add RenderDoc log category - Add unit tests for RenderDocCapture in tests/debug
24 lines
501 B
CMake
24 lines
501 B
CMake
find_package(GTest REQUIRED)
|
|
|
|
add_executable(debug_tests
|
|
test_logger.cpp
|
|
test_profiler.cpp
|
|
test_renderdoc_capture.cpp
|
|
)
|
|
|
|
target_link_libraries(debug_tests
|
|
PRIVATE
|
|
XCEngine
|
|
GTest::gtest
|
|
GTest::gtest_main
|
|
)
|
|
|
|
add_custom_command(TARGET debug_tests POST_BUILD
|
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
|
${CMAKE_SOURCE_DIR}/engine/third_party/renderdoc/renderdoc.dll
|
|
$<TARGET_FILE_DIR:debug_tests>/
|
|
)
|
|
|
|
include(GoogleTest)
|
|
gtest_discover_tests(debug_tests)
|