aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/fastfeat
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/fastfeat
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/fastfeat')
-rw-r--r--vcpkg/ports/fastfeat/CMakeLists.txt24
-rw-r--r--vcpkg/ports/fastfeat/fastfeat.def19
-rw-r--r--vcpkg/ports/fastfeat/portfile.cmake26
-rw-r--r--vcpkg/ports/fastfeat/vcpkg.json12
4 files changed, 81 insertions, 0 deletions
diff --git a/vcpkg/ports/fastfeat/CMakeLists.txt b/vcpkg/ports/fastfeat/CMakeLists.txt
new file mode 100644
index 0000000..89f1dc2
--- /dev/null
+++ b/vcpkg/ports/fastfeat/CMakeLists.txt
@@ -0,0 +1,24 @@
+cmake_minimum_required(VERSION 3.8)
+project(fastfeat)
+
+if(MSVC)
+ add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS)
+endif()
+
+include_directories(.)
+file( GLOB SRCS *.c *.def)
+add_library(fastfeat ${SRCS})
+
+
+install(
+ TARGETS fastfeat
+ RUNTIME DESTINATION bin
+ LIBRARY DESTINATION lib
+ ARCHIVE DESTINATION lib
+)
+
+if(NOT DISABLE_INSTALL_HEADERS)
+ install(
+ FILES fast.h DESTINATION include
+ )
+endif()
diff --git a/vcpkg/ports/fastfeat/fastfeat.def b/vcpkg/ports/fastfeat/fastfeat.def
new file mode 100644
index 0000000..21e0483
--- /dev/null
+++ b/vcpkg/ports/fastfeat/fastfeat.def
@@ -0,0 +1,19 @@
+LIBRARY fastfeat
+EXPORTS
+ fast9_detect_nonmax @1
+ fast10_detect_nonmax @2
+ fast9_corner_score @3
+ fast10_corner_score @4
+ fast11_corner_score @5
+ fast12_corner_score @6
+ fast9_detect @7
+ fast10_detect @8
+ fast11_detect @9
+ fast12_detect @10
+ fast9_score @11
+ fast10_score @12
+ fast11_score @13
+ fast12_score @14
+ fast11_detect_nonmax @15
+ fast12_detect_nonmax @16
+ nonmax_suppression @17
diff --git a/vcpkg/ports/fastfeat/portfile.cmake b/vcpkg/ports/fastfeat/portfile.cmake
new file mode 100644
index 0000000..d76f392
--- /dev/null
+++ b/vcpkg/ports/fastfeat/portfile.cmake
@@ -0,0 +1,26 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO edrosten/fast-C-src
+ REF 391d5e939eb1545d24c10533d7de424db8d9c191
+ SHA512 d6f401e2f80193c4f1f99e1ef59af7107d674c515574cf513c5977c4c95c49c0520d2a6e6787f617b42d9e3bd93c78b8fa7f1d8dc8901351820590078e62130e
+ HEAD_REF master
+)
+
+
+file(COPY
+"${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt"
+"${CMAKE_CURRENT_LIST_DIR}/fastfeat.def"
+DESTINATION "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS_DEBUG
+ -DDISABLE_INSTALL_HEADERS=ON
+)
+
+vcpkg_cmake_install()
+vcpkg_copy_pdbs()
+
+# Handle copyright
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/fastfeat" RENAME copyright)
diff --git a/vcpkg/ports/fastfeat/vcpkg.json b/vcpkg/ports/fastfeat/vcpkg.json
new file mode 100644
index 0000000..597ce50
--- /dev/null
+++ b/vcpkg/ports/fastfeat/vcpkg.json
@@ -0,0 +1,12 @@
+{
+ "name": "fastfeat",
+ "version-string": "391d5e9",
+ "port-version": 4,
+ "description": "FAST feature detectors in C",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ]
+}