CMakeLists.txt 571 B

123456789101112131415161718192021
  1. # This file is used for testing only
  2. # To perform the test, run `cmake .` at the root of the project tree followed
  3. # by ctest .
  4. cmake_minimum_required(VERSION 2.6)
  5. # Do not check any compiler
  6. project(editorconfig-core-py NONE)
  7. find_package(PythonInterp)
  8. if(NOT PYTHONINTERP_FOUND)
  9. message(FETAL_ERROR
  10. "Python interpreter is not found. If you have python installed, please run:
  11. cmake -DPYTHON_EXECUTABLE=/path/to/python .")
  12. endif()
  13. enable_testing()
  14. set(EDITORCONFIG_CMD ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR}/main.py)
  15. add_subdirectory(tests)