diff --git a/.gitignore b/.gitignore index 9f1c26e..735d09d 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,6 @@ # Tests /test/*/bin /test/external/ + +# CMake build folders +*/build* diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..8d40001 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,21 @@ +cmake_minimum_required(VERSION 3.16.0) + +project(xtd VERSION 0.1 LANGUAGES CXX) + + +# Define the header-only target +add_library(xtd INTERFACE) +target_include_directories(xtd INTERFACE + $ + $ +) + +# Installation instructions +install(DIRECTORY include/ DESTINATION include) + +install(TARGETS xtd EXPORT xtdTargets) +install(EXPORT xtdTargets + FILE xtdConfig.cmake + DESTINATION lib/cmake/xtd +) + diff --git a/include/internal/defines.h b/include/xtd/internal/defines.h similarity index 100% rename from include/internal/defines.h rename to include/xtd/internal/defines.h diff --git a/include/math.h b/include/xtd/math.h similarity index 100% rename from include/math.h rename to include/xtd/math.h diff --git a/include/math/sin.h b/include/xtd/math/sin.h similarity index 100% rename from include/math/sin.h rename to include/xtd/math/sin.h