fix: expose all required headers
Some checks failed
CI / build (push) Failing after 12s

This commit is contained in:
2026-03-15 00:45:37 +01:00
parent 7d6f15b7e6
commit b2910437a5
2 changed files with 6 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ add_library(curtle STATIC src/vector.c)
target_include_directories(curtle
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
@@ -28,7 +28,10 @@ install(TARGETS curtle
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)
install(FILES include/curtle/curtle.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
install(
DIRECTORY include/
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)
install(EXPORT curtleTargets
FILE curtleTargets.cmake

View File

@@ -1,4 +1,4 @@
#include "curtle/vector.h"
#include "curtle.h"
#include <math.h>
struct vec2 vec2_add(const struct vec2 a, const struct vec2 b)