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 $/ ) include(GoogleTest) gtest_discover_tests(debug_tests)