We wrote one for RStudio, not sure if it will fully meet your needs but it's at least a starting point:
https://github.com/rstudio/rstudio/blob/master/cmake/modules/FindLibR.cmake On Fri, Dec 14, 2012 at 11:51 AM, Richard Downe <[email protected]>wrote: > I use cmake for all my makefile generation. I realize there are other > good tools out there; cmake meets my needs rather well, and I'm happy with > it. > > Most libraries I use in my development (cgal, python, perl, swig, vtk/itk, > etc) are supported by FindXXX.cmake files that make dependency > location/comprehension trivial. > > R is the only library I use at the moment that lacks this. I was > wondering if > a) any other rcpp user has ever taken the time to write such a thing and/or > b) if there are other cmake users out there who might be interested in > seeing a FindR.cmake/FindRcpp.cmake combination to make building rcpp based > modules with other dependencies simpler. > > I realize this falls outside the standard build methods for R (I use a > perl script for my 'configure' file, and have this script invoke cmake on > my behalf), but I still find it rather useful, and thought others might as > well. > -rd > ______________________________**_________________ > Rcpp-devel mailing list > [email protected]**project.org<[email protected]> > https://lists.r-forge.r-**project.org/cgi-bin/mailman/** > listinfo/rcpp-devel<https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel> >
_______________________________________________ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
