Refactor CMake scripts. (#4323)

* Refactor CMake scripts.

* Remove CMake CUDA wrapper.
* Bump CMake version for CUDA.
* Use CMake to handle Doxygen.
* Split up CMakeList.
* Export install target.
* Use modern CMake.
* Remove build.sh
* Workaround for gpu_hist test.
* Use cmake 3.12.

* Revert machine.conf.

* Move CLI test to gpu.

* Small cleanup.

* Support using XGBoost as submodule.

* Fix windows

* Fix cpp tests on Windows

* Remove duplicated find_package.
This commit is contained in:
Jiaming Yuan
2019-04-16 01:08:12 +08:00
committed by Philip Hyunsu Cho
parent 84d992babc
commit 207f058711
28 changed files with 578 additions and 429 deletions

13
tests/cli/machine.conf.in Normal file
View File

@@ -0,0 +1,13 @@
# Originally an example in demo/regression/
booster = gbtree
objective = reg:linear
eta = 1.0
gamma = 1.0
seed = 0
min_child_weight = 0
max_depth = 3
num_round = 2
save_period = 0
data = "@PROJECT_SOURCE_DIR@/demo/data/agaricus.txt.train"
eval[test] = "@PROJECT_SOURCE_DIR@/demo/data/agaricus.txt.test"