message: Add a target
diff: @@ -349,14 +349,37 @@ if(BUILD_DOCUMENTATION)
  endif()
  -if (COVERALLS)
  set(ringmesh_files ${ringmesh_include} ${ringmesh_src})
  +if(COVERALLS)
  coveralls_setup(
  "${ringmesh_files}"
  ${COVERALLS_UPLOAD}
  "${PROJECT_SOURCE_DIR}/cmake")
  endif()
  +# additional target to perform clang-tidy run, requires clang-tidy
  +find_program(CLANG_TIDY "clang-tidy")
  +if(CLANG_TIDY)
  + message(STATUS "Configuring RINGMesh with clang-tidy")
  + get_directory_property(dirs INCLUDE_DIRECTORIES)
  + message(STATUS ${dirs} )
  + foreach(dir ${dirs})
  + message(STATUS "dir='${dir}'")
  + set(includes "-I${dir} ${includes}")
  +endforeach()
  + message(STATUS "${includes}" )
  +
  + add_custom_target(
  + tidy
  + COMMAND ${CLANG_TIDY}
  + ${ringmesh_files}
  + -checks='*'
  + --
  + -std=c++11
  + ${includes}
  + )
  +endif()
  +
  #------------------------------------------------------------------------------------------------
  # Configure CPack
  