aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/hffix
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/hffix')
-rw-r--r--vcpkg/ports/hffix/CMakeLists.txt28
-rw-r--r--vcpkg/ports/hffix/portfile.cmake21
-rw-r--r--vcpkg/ports/hffix/vcpkg.json17
3 files changed, 66 insertions, 0 deletions
diff --git a/vcpkg/ports/hffix/CMakeLists.txt b/vcpkg/ports/hffix/CMakeLists.txt
new file mode 100644
index 0000000..1f3a528
--- /dev/null
+++ b/vcpkg/ports/hffix/CMakeLists.txt
@@ -0,0 +1,28 @@
+cmake_minimum_required(VERSION 3.10)
+
+set(PROJECT_NAME hffix)
+project(${PROJECT_NAME})
+
+include(GNUInstallDirs)
+
+add_library(hffix INTERFACE)
+target_include_directories(hffix INTERFACE
+ $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/include>
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
+)
+
+install(
+ FILES
+ ${CMAKE_SOURCE_DIR}/include/hffix.hpp
+ ${CMAKE_SOURCE_DIR}/include/hffix_fields.hpp
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
+)
+
+install(
+ TARGETS hffix
+ EXPORT hffix-config
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+)
+install(EXPORT hffix-config DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME} NAMESPACE ${PROJECT_NAME}::) \ No newline at end of file
diff --git a/vcpkg/ports/hffix/portfile.cmake b/vcpkg/ports/hffix/portfile.cmake
new file mode 100644
index 0000000..1d4010e
--- /dev/null
+++ b/vcpkg/ports/hffix/portfile.cmake
@@ -0,0 +1,21 @@
+set(VCPKG_BUILD_TYPE release) # header-only port
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO jamesdbrock/hffix
+ REF "v${VERSION}"
+ SHA512 155c0e0bd57d952523343e94b0160baf3b20d366ff8260340d96c2ec4e638c94d192c08b7204303b0fa8610beb5c71046f62fa8b0212b477aaab88e49974cac1
+ HEAD_REF master
+)
+
+file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/hffix")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/hffix/vcpkg.json b/vcpkg/ports/hffix/vcpkg.json
new file mode 100644
index 0000000..d8064e6
--- /dev/null
+++ b/vcpkg/ports/hffix/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "hffix",
+ "version": "1.4.1",
+ "description": "Financial Information Exchange Protocol C++ Library",
+ "homepage": "https://jamesdbrock.github.io/hffix",
+ "license": "BSD-2-Clause",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}