aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2023-06-08 12:17:23 +0200
committerFelix Morgner <felix.morgner@gmail.com>2023-06-08 12:17:23 +0200
commit7591adc6bfe8d19ba1410c0ec1b0b118eecf8fdd (patch)
tree84163f33fc14741f6e9d6712cbabe8cf026b1042
parent8a1515579a344d09da25cbf5825e8221b2e21c92 (diff)
downloadnewtype-7591adc6bfe8d19ba1410c0ec1b0b118eecf8fdd.tar.xz
newtype-7591adc6bfe8d19ba1410c0ec1b0b118eecf8fdd.zip
lib: fix installation step
-rw-r--r--source/lib/CMakeLists.txt7
-rw-r--r--test_package/main.cpp2
2 files changed, 2 insertions, 7 deletions
diff --git a/source/lib/CMakeLists.txt b/source/lib/CMakeLists.txt
index a1ed36e..d573510 100644
--- a/source/lib/CMakeLists.txt
+++ b/source/lib/CMakeLists.txt
@@ -9,12 +9,7 @@ target_compile_features("${PROJECT_NAME}" INTERFACE
"cxx_std_20"
)
-install(TARGETS "${PROJECT_NAME}"
- EXPORT "${PROJECT_NAME}Targets"
- PUBLIC_HEADER DESTINATION "include"
-)
-
-install(DIRECTORY "${PROJECT_SOURCE_DIR}/include/"
+install(DIRECTORY "include/"
DESTINATION "include"
)
diff --git a/test_package/main.cpp b/test_package/main.cpp
index d2efe04..f0c2bea 100644
--- a/test_package/main.cpp
+++ b/test_package/main.cpp
@@ -1,4 +1,4 @@
-#include "newtype/newtype.hpp"
+#include <newtype/newtype.hpp>
#include <iostream>