fastfeat init

This commit is contained in:
atkawa7 2018-08-31 16:47:50 +02:00
parent 04ba5aa07b
commit 807e40d342
4 changed files with 74 additions and 0 deletions

View File

@ -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()

3
ports/fastfeat/CONTROL Normal file
View File

@ -0,0 +1,3 @@
Source: fastfeat
Version: 391d5e9
Description: FAST feature detectors in C

View File

@ -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

View File

@ -0,0 +1,28 @@
include(vcpkg_common_functions)
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_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS_DEBUG
-DDISABLE_INSTALL_HEADERS=ON
)
vcpkg_install_cmake()
vcpkg_copy_pdbs()
# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/fastfeat RENAME copyright)