add for MACOS

This commit is contained in:
@Nurullah.Damla 2020-01-08 13:14:51 +01:00
parent 65f10f7df7
commit 747bfce015
1 changed files with 5 additions and 0 deletions

View File

@ -8,9 +8,14 @@ if ("${CMAKE_BINARY_DIR}" STREQUAL "${CMAKE_SOURCE_DIR}")
endif()
set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_MAKE_CLEAN_FILES "bin" "doc" "CMakeFiles" "lib" "include")
set(CMAKE_C_COMPILER "clang")
set(CMAKE_CXX_COMPILER "clang++")
project(Demo)
set(CMAKE_CXX_STANDARD 14)
# enable clang_tidy
set(CMAKE_CXX_CLANG_TIDY clang-tidy;-header-filter=.;)