From ce63f08ae68a91735447ced03d0fd4158fcb2a25 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Fri, 16 Dec 2022 17:17:25 +0100 Subject: [PATCH] move stuff around --- version0/CMakeLists.txt | 14 ++++++++------ version0/{ => crdt}/list.hpp | 0 version0/{ => crdt}/text_document.hpp | 0 version0/test1.cpp | 4 ++-- version0/test2.cpp | 2 +- 5 files changed, 11 insertions(+), 9 deletions(-) rename version0/{ => crdt}/list.hpp (100%) rename version0/{ => crdt}/text_document.hpp (100%) diff --git a/version0/CMakeLists.txt b/version0/CMakeLists.txt index 53f143d..354e278 100644 --- a/version0/CMakeLists.txt +++ b/version0/CMakeLists.txt @@ -2,23 +2,25 @@ cmake_minimum_required(VERSION 3.9 FATAL_ERROR) project(crdt_version0 CXX C) +add_library(crdt_version0 INTERFACE) + +target_compile_features(crdt_version0 INTERFACE cxx_std_17) + +target_include_directories(crdt_version0 INTERFACE "${PROJECT_SOURCE_DIR}") + ######################################## add_executable(test1 - ./list.hpp - ./text_document.hpp ./test1.cpp ) -target_compile_features(test1 PUBLIC cxx_std_17) +target_link_libraries(test1 PUBLIC crdt_version0) ######################################## add_executable(test2 - ./list.hpp - ./text_document.hpp ./test2.cpp ) -target_compile_features(test2 PUBLIC cxx_std_17) +target_link_libraries(test2 PUBLIC crdt_version0) diff --git a/version0/list.hpp b/version0/crdt/list.hpp similarity index 100% rename from version0/list.hpp rename to version0/crdt/list.hpp diff --git a/version0/text_document.hpp b/version0/crdt/text_document.hpp similarity index 100% rename from version0/text_document.hpp rename to version0/crdt/text_document.hpp diff --git a/version0/test1.cpp b/version0/test1.cpp index b676492..77a886c 100644 --- a/version0/test1.cpp +++ b/version0/test1.cpp @@ -1,5 +1,5 @@ -#include "./list.hpp" -#include "./text_document.hpp" +#include +#include #include #include diff --git a/version0/test2.cpp b/version0/test2.cpp index 6b02983..9f5887a 100644 --- a/version0/test2.cpp +++ b/version0/test2.cpp @@ -1,4 +1,4 @@ -#include "./text_document.hpp" +#include #include #include