-
Notifications
You must be signed in to change notification settings - Fork 10
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
8 changed files
with
109 additions
and
20 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
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
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 |
---|---|---|
|
@@ -2,7 +2,16 @@ set(@PROJECT_NAME@_VERSION @PROJECT_VERSION@) | |
|
||
@PACKAGE_INIT@ | ||
|
||
set_and_check(@PROJECT_NAME@_INCLUDE_DIR "@CMAKE_INSTALL_FULL_INCLUDEDIR@") | ||
# Reuse FindZstd | ||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}") | ||
|
||
# Add dependencies here so end-user doesn't have to | ||
include(CMakeFindDependencyMacro) | ||
find_dependency(date) | ||
find_dependency(httplib) | ||
find_dependency(nlohmann_json) | ||
find_dependency(Threads) | ||
find_dependency(Zstd) | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]") | ||
|
||
|
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Maintainer: Databento <[email protected]> | ||
_pkgname=databento-cpp | ||
pkgname=databento-cpp-git | ||
pkgver=0.20.0 | ||
pkgver=0.20.1 | ||
pkgrel=1 | ||
pkgdesc="Official C++ client for Databento" | ||
arch=('any') | ||
|
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
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,38 @@ | ||
# Install locally | ||
add_test( | ||
NAME cmake_import_install | ||
COMMAND | ||
${CMAKE_COMMAND} | ||
--install ${CMAKE_BINARY_DIR} | ||
--prefix ${CMAKE_CURRENT_BINARY_DIR}/pkg | ||
) | ||
# Configure test project | ||
add_test( | ||
NAME cmake_import_configure | ||
COMMAND | ||
${CMAKE_COMMAND} | ||
-G "${CMAKE_GENERATOR}" | ||
-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} | ||
-Ddatabento_DIR=${CMAKE_CURRENT_BINARY_DIR}/pkg/lib/cmake/databento | ||
-Dnlohmann_json_DIR=${nlohmann_json_BINARY_DIR} | ||
-Ddate_DIR=${CMAKE_CURRENT_BINARY_DIR}/pkg/lib/cmake/date | ||
-Dhttplib_DIR=${CMAKE_CURRENT_BINARY_DIR}/pkg/lib/cmake/httplib | ||
${CMAKE_CURRENT_SOURCE_DIR}/project | ||
) | ||
# Build test project | ||
add_test( | ||
NAME cmake_import_build | ||
COMMAND ${CMAKE_COMMAND} --build . | ||
) | ||
set_tests_properties( | ||
cmake_import_install | ||
PROPERTIES FIXTURES_SETUP cmake_import | ||
) | ||
set_tests_properties( | ||
cmake_import_configure | ||
PROPERTIES FIXTURES_SETUP cmake_import | ||
) | ||
set_tests_properties( | ||
cmake_import_build | ||
PROPERTIES FIXTURES_REQUIRED cmake_import | ||
) |
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 @@ | ||
cmake_minimum_required(VERSION 3.14) | ||
|
||
project(DummyImport LANGUAGES CXX) | ||
|
||
find_package(databento REQUIRED) | ||
|
||
add_executable(dummy main.cpp) | ||
target_link_libraries(dummy databento::databento) |
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 @@ | ||
#include <databento/record.hpp> | ||
|
||
int main(int argc, char** argv) { | ||
databento::RecordHeader header{}; | ||
std::cout << header.Size() << '\n'; | ||
|
||
return 0; | ||
} |