You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
637 B

3 months ago
  1. # Misc stuff to setup ci tools
  2. configure_file( ${CMAKE_SOURCE_DIR}/.ci/sonarcloud.properties.in ${CMAKE_BINARY_DIR}/sonarcloud.properties)
  3. unset(PYTHON_EXECUTABLE CACHE)
  4. find_package(PythonInterp 3 QUIET)
  5. if(PYTHONINTERP_FOUND)
  6. add_custom_target(.travis.yml)
  7. add_custom_command(
  8. TARGET .travis.yml
  9. BYPRODUCTS ${CMAKE_SOURCE_DIR}/.travis.yml
  10. COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/.ci/travis_generate.py
  11. WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/.ci/
  12. )
  13. message(STATUS "Run \"make .travis.yml\" to rebuild the travis file.")
  14. else()
  15. message(STATUS "Did not find python3, target .travis.yml is not available.")
  16. endif()