summaryrefslogtreecommitdiffstats
path: root/tests/auto/render/commons/commons.cmake
blob: 9565c91c70776b927c0c02d128153f84a4ccafab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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()