From b3a7b6fb2b4f545e0f90700d6d1bbdc1087b9b5d Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Thu, 19 Oct 2023 07:54:57 +0200 Subject: [PATCH] feat: move headers to include dir --- CMakeLists.txt | 3 ++- {src => include}/constexp.h | 0 {src => include}/null.h | 0 3 files changed, 2 insertions(+), 1 deletion(-) rename {src => include}/constexp.h (100%) rename {src => include}/null.h (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index dfc39b8..8d8f0d6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,4 +16,5 @@ add_executable(hello src/main.cpp src/null.cpp src/constexp.cpp) target_compile_features(hello PUBLIC cxx_std_20) -target_include_directories(hello PRIVATE "${PROJECT_BINARY_DIR}/include") +target_include_directories(hello PRIVATE "${PROJECT_BINARY_DIR}/include" + "${PROJECT_SOURCE_DIR}/include") diff --git a/src/constexp.h b/include/constexp.h similarity index 100% rename from src/constexp.h rename to include/constexp.h diff --git a/src/null.h b/include/null.h similarity index 100% rename from src/null.h rename to include/null.h