-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
include(FindPackageHandleStandardArgs) | ||
|
||
find_path(FastCppCsvParser_INCLUDE_DIR | ||
NAMES csv.h | ||
PATH_SUFFIXES fast-cpp-csv-parser | ||
HINTS ${FastCppCsvParser_ROOT_DIR}/include ${FastCppCsvParser_INCLUDEDIR} | ||
) | ||
|
||
find_package_handle_standard_args(FastCppCsvParser | ||
FOUND_VAR FastCppCsvParser_FOUND | ||
REQUIRED_VARS FastCppCsvParser_INCLUDE_DIR | ||
) | ||
|
||
mark_as_advanced(FastCppCsvParser_ROOT_DIR FastCppCsvParser_INCLUDE_DIR) | ||
|
||
if(FastCppCsvParser_FOUND AND NOT TARGET FastCppCsvParser::csv) | ||
add_library(FastCppCsvParser::csv INTERFACE IMPORTED) | ||
set_target_properties(FastCppCsvParser::csv PROPERTIES | ||
INTERFACE_INCLUDE_DIRECTORIES "${FastCppCsvParser_INCLUDE_DIR}" | ||
) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# header-only library | ||
|
||
vcpkg_from_github( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
REPO ben-strasser/fast-cpp-csv-parser | ||
REF 75600d0b77448e6c410893830df0aec1dbacf8e3 | ||
SHA512 aab418e98eb895dabd6369b186b7a55beddb84b89e358395a9f125829074916eff9086d80f9cd342d1bfd91acacc7103875c970a84164b75fff259cc93729285 | ||
HEAD_REF master | ||
) | ||
|
||
file(COPY "${SOURCE_PATH}/csv.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}") | ||
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/FindFastCppCsvParser.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/cmake) | ||
|
||
# Handle copyright | ||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"name": "fast-cpp-csv-parser", | ||
"version-date": "2021-01-03", | ||
"port-version": 2, | ||
"description": "A small, easy-to-use and fast header-only library for reading comma separated value (CSV) files", | ||
"homepage": "https://github.com/ben-strasser/fast-cpp-csv-parser", | ||
"license": "BSD-3-Clause" | ||
} |