15 lines
373 B
CMake
15 lines
373 B
CMake
# add teting
|
|
|
|
add_test(gtest01 python test.py)
|
|
|
|
if (${PYTHON_VERSION_MAJOR} MATCHES "2")
|
|
configure_file(test.py test.py)
|
|
elseif (${PYTHON_VERSION_MAJOR} MATCHES "3")
|
|
configure_file(python3/test.py test.py)
|
|
endif()
|
|
|
|
set_property(TEST gtest01
|
|
PROPERTY ENVIRONMENT
|
|
PYTHONPATH=./module:${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}
|
|
)
|