File: CMakeLists.txt

package info (click to toggle)
embree 3.12.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 27,412 kB
  • sloc: cpp: 173,822; xml: 3,737; ansic: 2,955; python: 1,628; sh: 480; makefile: 193; csh: 42
file content (34 lines) | stat: -rw-r--r-- 1,934 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
## Copyright 2009-2020 Intel Corporation
## SPDX-License-Identifier: Apache-2.0

INCLUDE(tutorial)
ADD_TUTORIAL(viewer_stream)
ADD_TUTORIAL_ISPC(viewer_stream)

IF (BUILD_TESTING AND EMBREE_TESTING_INTENSITY GREATER 1)
  ADD_EMBREE_MODELS_TEST(test-models-intensive2.txt viewer_stream_coherent viewer viewer_stream --coherent)
  ADD_EMBREE_MODELS_TEST(test-models-intensive2.txt viewer_stream_incoherent viewer viewer_stream --incoherent)
  ADD_EMBREE_MODELS_TEST(test-models-intensive2.txt viewer_stream_quad_coherent viewer viewer_stream -convert-triangles-to-quads)
  ADD_EMBREE_MODELS_TEST(test-models-intensive2.txt viewer_stream_quad_incoherent viewer viewer_stream -convert-triangles-to-quads --incoherent)
ENDIF()

IF (BUILD_TESTING AND EMBREE_TESTING_INTENSITY GREATER 1)
  ADD_EMBREE_MODELS_TEST(test-models-intensive3.txt viewer_stream_coherent viewer viewer_stream --coherent)
  ADD_EMBREE_MODELS_TEST(test-models-intensive3.txt viewer_stream_incoherent viewer viewer_stream --incoherent)
  ADD_EMBREE_MODELS_TEST(test-models-intensive3.txt viewer_stream_quad_coherent viewer viewer_stream -convert-triangles-to-quads)
  ADD_EMBREE_MODELS_TEST(test-models-intensive3.txt viewer_stream_quad_incoherent viewer viewer_stream -convert-triangles-to-quads --incoherent)
ENDIF()

IF (BUILD_TESTING AND EMBREE_TESTING_INTENSITY GREATER 1)
  ADD_EMBREE_MODELS_TEST(test-models-subdiv.txt viewer_stream viewer viewer_stream)
  ADD_EMBREE_MODELS_TEST(test-models-intensity2.txt viewer_stream viewer viewer_stream)
ENDIF()

IF (BUILD_TESTING AND EMBREE_TESTING_INTENSITY GREATER 3)
  ADD_EMBREE_MODELS_TEST(test-models-intensity3.txt viewer_stream viewer viewer_stream)
ENDIF()

CMAKE_HOST_SYSTEM_INFORMATION(RESULT memory QUERY TOTAL_PHYSICAL_MEMORY)
IF (BUILD_TESTING AND EMBREE_TESTING_INTENSITY GREATER 3 AND ${memory} GREATER 10000)
  ADD_EMBREE_MODELS_TEST(test-models-intensity4.txt viewer_stream viewer viewer_stream)
ENDIF()