Files
geant4/environments/g4py/tests/gtest01/CMakeLists.txt
T
2021-12-12 17:16:06 +01:00

5 lines
254 B
CMake

add_subdirectory(module)
configure_file(test.py test.py)
add_test(NAME geant4py-test01 COMMAND ${PYTHON_EXECUTABLE} test.py)
set_tests_properties(geant4py-test01 PROPERTIES ENVIRONMENT "PYTHONPATH=${GEANT4_PYTHON_OUTPUT_DIR};${GEANT4_TEST_ENVIRONMENT}")