xgboost/demo/c-api/CMakeLists.txt
Jiaming Yuan ba50e6eb62
[backport] [CI] Require C++17 + CMake 3.18; Use CUDA 11.8 in CI (#8853) (#8971)
Co-authored-by: Philip Hyunsu Cho <chohyu01@cs.washington.edu>
2023-03-26 00:10:03 +08:00

24 lines
553 B
CMake

cmake_minimum_required(VERSION 3.18)
project(xgboost-c-examples)
add_subdirectory(basic)
add_subdirectory(external-memory)
add_subdirectory(inference)
enable_testing()
add_test(
NAME test_xgboost_demo_c_basic
COMMAND api-demo
WORKING_DIRECTORY ${xgboost-c-examples_BINARY_DIR}
)
add_test(
NAME test_xgboost_demo_c_external_memory
COMMAND external-memory-demo
WORKING_DIRECTORY ${xgboost-c-examples_BINARY_DIR}
)
add_test(
NAME test_xgboost_demo_c_inference
COMMAND inference-demo
WORKING_DIRECTORY ${xgboost-c-examples_BINARY_DIR}
)