diff options
Diffstat (limited to 'tests/auto/render/commons/commons.cmake')
-rw-r--r-- | tests/auto/render/commons/commons.cmake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/render/commons/commons.cmake b/tests/auto/render/commons/commons.cmake new file mode 100644 index 000000000..9565c91c7 --- /dev/null +++ b/tests/auto/render/commons/commons.cmake @@ -0,0 +1,14 @@ +include(${PROJECT_SOURCE_DIR}/tests/auto/core/common/common.cmake) + +function(qt3d_setup_common_render_test target) + cmake_parse_arguments(args "USE_TEST_ASPECT" "" "" ${ARGN}) + set(commonDir ${PROJECT_SOURCE_DIR}/tests/auto/core/common) + set(commonsDir ${PROJECT_SOURCE_DIR}/tests/auto/render/commons) + target_sources(${target} PRIVATE ${commonsDir}/testrenderer.h ${commonsDir}/testrenderer.cpp) + if (args_USE_TEST_ASPECT) + target_sources(${target} PRIVATE ${commonsDir}/testaspect.h ${commonsDir}/testaspect.cpp) + endif() + target_include_directories(${target} PRIVATE ${commonsDir}) + + qt3d_setup_common_test(${target}) +endfunction() |