Move the old cmakefiles to create the new ones

This commit is contained in:
Paul Ferrand 2019-11-23 17:30:56 +01:00
parent ea00d59f5a
commit 34fd01a2ea
6 changed files with 13 additions and 0 deletions

View file

@ -1,5 +1,18 @@
project(sfizz)
include(FetchContent)
FetchContent_Declare(
benchmark
GIT_REPOSITORY https://github.com/google/benchmark.git
GIT_TAG v1.5.0
)
FetchContent_GetProperties(benchmark)
if(NOT benchmark_POPULATED)
FetchContent_Populate(benchmark)
add_subdirectory(${benchmark_SOURCE_DIR} ${benchmark_BINARY_DIR})
endif()
# Check SIMD
include(CheckIncludeFiles)
CHECK_INCLUDE_FILES(x86intrin.h HAVE_X86INTRIN_H)