Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[hffix] New port hffix library 1.0.0 #13433

Merged
merged 1 commit into from
Sep 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions ports/hffix/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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}::)
4 changes: 4 additions & 0 deletions ports/hffix/CONTROL
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Source: hffix
Version: 1.0.0
Homepage: https://jamesdbrock.github.io/hffix
Description: Financial Information Exchange Protocol C++ Library
23 changes: 23 additions & 0 deletions ports/hffix/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# header only library

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO jamesdbrock/hffix
REF v1.0.0
SHA512 0043b789e6ffdc32eaf2736a8621dd7fd54e1a16aae33bb1d5f642da1b04d150ed42d8f9ddd046013242164854d9091540452153f09459d05f9bf4a186c7b860
HEAD_REF master
)

file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib)

file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)