[Rcpp-devel] CMakeList.txt for c++ and Rcpp

JJ Allaire jj.allaire at gmail.com
Mon Oct 17 17:52:45 CEST 2016

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.

On Mon, Oct 17, 2016 at 11:49 AM, Janez Bindas <janez.bindas at gmail.com>

> I am new at R and i would like to automate my building process with cmake.
> I searched the internet for an example of CMakeList.txt in which connect
> C++ and R through Rcpp. I was unable to find that example.
> Could you please help me.
> Janez Bindas (janex)
> _______________________________________________
> Rcpp-devel mailing list
> Rcpp-devel at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20161017/c8b6c540/attachment.html>

More information about the Rcpp-devel mailing list