* Add OpenMP as CMake target * Require CMake 3.12, to allow linking OpenMP target to objxgboost * Specify OpenMP compiler flag for CUDA host compiler * Require CMake 3.16+ if the OS is Mac OSX * Use AppleClang in Mac tests. * Update dmlc-core
5 lines
155 B
CMake
5 lines
155 B
CMake
cmake_minimum_required(VERSION 3.12)
|
|
find_package(xgboost REQUIRED)
|
|
add_executable(api-demo c-api-demo.c)
|
|
target_link_libraries(api-demo xgboost::xgboost)
|