On 17 October 2016 at 11:52, JJ Allaire wrote: | I would just have CMake call R CMD [SHLIB/build/INSTALL/etc.) as an external | tool. R does a tremendous amount behind the scenes to configure the build | environment and you don't really want to try to replicate that. A basic package | need only place the cpp files within the "src/" directory and they will be | built automatically. More advanced scenarios can be covered with a custom | Makevars[.win] in the "src/" directory.
Seconded. If you really insist on CMake, the RInside project has long had _contributed_ files in its inst/examples/*/ directories. CMake is not that widely used within the R world which is why this never became a priority here either. It simply is hard to fully replace something that works so reliably for everybody and is well enough understood, possible warts and all. Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel