Closed emmenlau closed 4 years ago
This PR already works well for us. Please review and let me know what you think?
Thanks @emmenlau
Similar to the PR of Eigen
support, this PR also needs a configuration file. Would it be better to put the content of cmake/thundersvmConfig.cmake.in
to thundersvm/include/thundersvm/config.h.in
?
Similar to the PR of
Eigen
support, this PR also needs a configuration file. Would it be better to put the content ofcmake/thundersvmConfig.cmake.in
tothundersvm/include/thundersvm/config.h.in
?
The generated file does not solve exactly the same need as a generated header. The generated file thundersvm/include/thundersvm/config.h.in
will tell cmake of downstream projects whether they need Eigen or not, and whether they need OpenMP or not, etc. At compile time it is too late to find Eigen, but at configure time this configuration file can take the decision.
Hmm. You are right. I will merge it. Thanks!
Thanks for all the nice work!
This PR adds an install target so that thundersvm can be used from downstream projects. It also exports the cmake configuration for thundersvm.
Users can perform an installation simply with
make install
like in:Downstream cmake projects can find and use thundersvm with:
With the installed headers and library we can use thundersvm successfully in our project from C++. I think this can be very useful to many users already now.