From b835e409e864b892e6e3407112ca1b4bb847fe62 Mon Sep 17 00:00:00 2001 From: Simone Balducci Date: Wed, 5 Mar 2025 17:27:31 +0100 Subject: [PATCH 1/3] Add cmake file for installations --- CMakeLists.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 CMakeLists.txt 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 +) + From 493ea46d86cad57a3338e1ba8dbb402cb0fca6c3 Mon Sep 17 00:00:00 2001 From: Simone Balducci Date: Wed, 5 Mar 2025 17:27:47 +0100 Subject: [PATCH 2/3] Add `xtd` folder and fix typos in sin.h --- include/{ => xtd}/internal/defines.h | 0 include/{ => xtd}/math.h | 0 include/{ => xtd}/math/sin.h | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename include/{ => xtd}/internal/defines.h (100%) rename include/{ => xtd}/math.h (100%) rename include/{ => xtd}/math/sin.h (100%) 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 From 099472cbfd570f1ba6611a1dcbc46f50e7179d68 Mon Sep 17 00:00:00 2001 From: Simone Balducci Date: Thu, 6 Mar 2025 09:22:14 +0100 Subject: [PATCH 3/3] Add CMake build folders to gitignore --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) 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*