From a6e1efb314d10f98796b7bcb6d6d144d69bd5855 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Tue, 13 Dec 2022 17:50:18 +0100 Subject: [PATCH] move prots to extra folder --- CMakeLists.txt | 24 +----------------------- prototyping/CMakeLists.txt | 28 ++++++++++++++++++++++++++++ test1.cpp => prototyping/test1.cpp | 0 test2.cpp => prototyping/test2.cpp | 0 4 files changed, 29 insertions(+), 23 deletions(-) create mode 100644 prototyping/CMakeLists.txt rename test1.cpp => prototyping/test1.cpp (100%) rename test2.cpp => prototyping/test2.cpp (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6abc5a2..e1eddee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,27 +33,5 @@ elseif (${CMAKE_CXX_COMPILER_ID} STREQUAL "MSVC") endif() endif() -######################################## - -add_executable(test1 - ./test1.cpp -) - -target_compile_features(test1 PUBLIC cxx_std_17) - -target_link_libraries(test1 PUBLIC - nlohmann_json::nlohmann_json -) - -######################################## - -add_executable(test2 - ./test2.cpp -) - -target_compile_features(test2 PUBLIC cxx_std_17) - -target_link_libraries(test2 PUBLIC - nlohmann_json::nlohmann_json -) +add_subdirectory(./prototyping) diff --git a/prototyping/CMakeLists.txt b/prototyping/CMakeLists.txt new file mode 100644 index 0000000..e868ea2 --- /dev/null +++ b/prototyping/CMakeLists.txt @@ -0,0 +1,28 @@ +cmake_minimum_required(VERSION 3.9 FATAL_ERROR) + +project(crdt_tests CXX C) + +######################################## + +add_executable(test1 + ./test1.cpp +) + +target_compile_features(test1 PUBLIC cxx_std_17) + +target_link_libraries(test1 PUBLIC + nlohmann_json::nlohmann_json +) + +######################################## + +add_executable(test2 + ./test2.cpp +) + +target_compile_features(test2 PUBLIC cxx_std_17) + +target_link_libraries(test2 PUBLIC + nlohmann_json::nlohmann_json +) + diff --git a/test1.cpp b/prototyping/test1.cpp similarity index 100% rename from test1.cpp rename to prototyping/test1.cpp diff --git a/test2.cpp b/prototyping/test2.cpp similarity index 100% rename from test2.cpp rename to prototyping/test2.cpp