From 34fd01a2eaf4c811b36218b21d4129b97221ae59 Mon Sep 17 00:00:00 2001 From: Paul Ferrand Date: Sat, 23 Nov 2019 17:30:56 +0100 Subject: [PATCH] Move the old cmakefiles to create the new ones --- .../CMakeLists.txt => old_cmake/benchmark.txt | 13 +++++++++++++ clients/CMakeLists.txt => old_cmake/client.txt | 0 lv2/CMakeLists.txt => old_cmake/lv2.txt | 0 CMakeLists.txt => old_cmake/root.txt | 0 src/CMakeLists.txt => old_cmake/sfizz_source.txt | 0 tests/CMakeLists.txt => old_cmake/tests.txt | 0 6 files changed, 13 insertions(+) rename benchmarks/CMakeLists.txt => old_cmake/benchmark.txt (92%) rename clients/CMakeLists.txt => old_cmake/client.txt (100%) rename lv2/CMakeLists.txt => old_cmake/lv2.txt (100%) rename CMakeLists.txt => old_cmake/root.txt (100%) rename src/CMakeLists.txt => old_cmake/sfizz_source.txt (100%) rename tests/CMakeLists.txt => old_cmake/tests.txt (100%) diff --git a/benchmarks/CMakeLists.txt b/old_cmake/benchmark.txt similarity index 92% rename from benchmarks/CMakeLists.txt rename to old_cmake/benchmark.txt index 2a4e0342..350482ab 100644 --- a/benchmarks/CMakeLists.txt +++ b/old_cmake/benchmark.txt @@ -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) diff --git a/clients/CMakeLists.txt b/old_cmake/client.txt similarity index 100% rename from clients/CMakeLists.txt rename to old_cmake/client.txt diff --git a/lv2/CMakeLists.txt b/old_cmake/lv2.txt similarity index 100% rename from lv2/CMakeLists.txt rename to old_cmake/lv2.txt diff --git a/CMakeLists.txt b/old_cmake/root.txt similarity index 100% rename from CMakeLists.txt rename to old_cmake/root.txt diff --git a/src/CMakeLists.txt b/old_cmake/sfizz_source.txt similarity index 100% rename from src/CMakeLists.txt rename to old_cmake/sfizz_source.txt diff --git a/tests/CMakeLists.txt b/old_cmake/tests.txt similarity index 100% rename from tests/CMakeLists.txt rename to old_cmake/tests.txt