Debian Codegraph @

src/python/PyImathSpeedTest/CMakeLists.txt

raw
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright Contributors to the OpenEXR Project.
3
4 # Speed tests are not performed in Python2 as getting acurate time is difficult.
5 # set -DSPEED=ON when running cmake to perform these tests.
6 if(TARGET Python3::Interpreter AND SPEED)
7 add_test(PyImath.PyImathSpeedTest_Python3
8 ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/pyImathSpeedTest.in
9 )
10 set_tests_properties(PyImath.PyImathSpeedTest_Python3 PROPERTIES
11 ENVIRONMENT "PYTHONPATH=${CMAKE_BINARY_DIR}/python${Python3_VERSION_MAJOR}_${Python3_VERSION_MINOR}"
12 )
13 endif()