[CI] Test C API demo (#6159)

* Fix CMake install config to use dependencies

* [CI] Test C API demo

* Explicitly cast num_feature, to avoid warning in Linux
This commit is contained in:
Philip Hyunsu Cho
2020-09-25 14:49:01 -07:00
committed by GitHub
parent bd2b1eabd0
commit 2c4dedb7a0
5 changed files with 65 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
cmake_minimum_required(VERSION 3.12)
cmake_minimum_required(VERSION 3.13)
project(api-demo LANGUAGES C CXX VERSION 0.0.1)
find_package(xgboost REQUIRED)
add_executable(api-demo c-api-demo.c)
target_link_libraries(api-demo xgboost::xgboost)
target_link_libraries(api-demo PRIVATE xgboost::xgboost)