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

2016-10-17 Thread Dirk Eddelbuettel

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


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

2016-10-17 Thread JJ Allaire
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 
wrote:

> 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@lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
>
___
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