feature/export-cmake #8

Merged
lowearthorbit merged 3 commits from feature/export-cmake into release/0.2.0 2026-03-15 00:52:26 +01:00
2 changed files with 6 additions and 3 deletions
Showing only changes of commit b2910437a5 - Show all commits

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)