]> git.cworth.org Git - apitrace-tests/blob - apps/d3d10_1/CMakeLists.txt
Add --exact, --no-deps, or --no-prune to trim tests as needed
[apitrace-tests] / apps / d3d10_1 / CMakeLists.txt
1 include_directories (
2     ${CMAKE_CURRENT_SOURCE_DIR}/../d3dcommon
3     ${DirectX_D3D10_1_INCLUDE_DIR}
4 )
5
6 link_libraries (
7     ${DirectX_DXGI_LIBRARY}
8     ${DirectX_D3D10_1_LIBRARY}
9 )
10
11 set (api d3d10_1)
12
13 set (targets
14     tri
15     tri_level_9_1
16 )
17
18 foreach (target ${targets})
19     add_executable (${api}_${target} ${target}.cpp)
20     set_target_properties (${api}_${target} PROPERTIES OUTPUT_NAME ${target})
21
22     if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${target}.ref.txt)
23         add_app_test(
24             NAME ${api}_${target}
25             TARGET ${api}_${target}
26             REF ${target}.ref.txt
27         )
28     endif ()
29 endforeach (target)
30