<div dir="ltr">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.<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 17, 2016 at 11:49 AM, Janez Bindas <span dir="ltr"><<a href="mailto:janez.bindas@gmail.com" target="_blank">janez.bindas@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>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.<br><br></div>Could you please help me.<br><br>Janez Bindas (janex)</div>
<br>______________________________<wbr>_________________<br>
Rcpp-devel mailing list<br>
<a href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-<wbr>project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" rel="noreferrer" target="_blank">https://lists.r-forge.r-<wbr>project.org/cgi-bin/mailman/<wbr>listinfo/rcpp-devel</a><br></blockquote></div><br></div>