Using ExternalProject_Add to build third party dependencies
Created by: gangliao
Add a directory external
under cmake
.
- Some dependencies should be optional, we first search them from system default, if not found, pull from git/svn/https, add them as external dependencies.
For instance,
swig
, python
, numpy
, git
- Other dependencies should be added and installed default using
ExternalProject_Add
.
For example,
glog
, gflags
, gtest
, protobuf
, openblas
, zlib
, warpctc
Pull and build remote third-party's source code is quite slow, we could add a CMake parameter USE_SYSTEM
to make our CI system run faster.