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.bin...@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 mailing list