naibaf7 / caffe

Caffe: a fast open framework for deep learning. With OpenCL and CUDA support.
http://caffe.berkeleyvision.org/
Other
85 stars 20 forks source link

[RFC] Improvements to the build system #43

Closed intelfx closed 7 years ago

intelfx commented 7 years ago

This is the PR mentioned in issue #41 — an extension of PR BVLC/caffe#4609 with merge conflicts resolved and further work done specific to this buildsystem, taking the path of moving #cmakedefines into CMakeLists code.

The PR contents various improvements to the CMake buildsystem directed towards "modern" packaging with CMake IMPORTED targets and config-mode find_package().

There are several bugfixes and a slight refactoring of the buildsystem which makes Caffe properly export its transitive dependencies ("usage requirements") to the library users.

Open questions:

Tests done: