aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/genann/CMakeLists.txt
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/genann/CMakeLists.txt
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/genann/CMakeLists.txt')
-rw-r--r--vcpkg/ports/genann/CMakeLists.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/vcpkg/ports/genann/CMakeLists.txt b/vcpkg/ports/genann/CMakeLists.txt
new file mode 100644
index 0000000..80b7ab9
--- /dev/null
+++ b/vcpkg/ports/genann/CMakeLists.txt
@@ -0,0 +1,25 @@
+cmake_minimum_required(VERSION 3.11)
+project(genann)
+
+set(SRC_FILES
+genann.c
+)
+
+add_library(genann ${SRC_FILES})
+
+target_include_directories(genann PUBLIC
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
+ $<INSTALL_INTERFACE:include/genann>
+)
+
+# Install targets
+install(TARGETS genann
+ RUNTIME DESTINATION bin
+ LIBRARY DESTINATION lib
+ ARCHIVE DESTINATION lib
+)
+
+# Install headers
+if (INSTALL_HEADERS)
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/genann.h DESTINATION include/genann)
+endif() \ No newline at end of file