Building Visual C++ Applications with CGAL Library -


i need use delaunay traingulation (3d) method integrated in visual c++ project working with.

i followed cgal installation guide , able build using cmake , so, can please explain me in detail:

  1. how can use (refer) cgal in own c++ project (in visual studios 2010),
  2. how can create standalone exe of project afterwards.

thanks!

i have encountered same problem. , below solutions (although develop environment vs 2015, still believe work on vs 2010).

  1. add 'include' folder under 'cgal' project home folder 'include directory' in project configuration (please not directly add 'cgal' folder, in order cite header file in 'cgal/*.h' style.

  2. here tricky part, copy 'compiler_config.h' file under '/build/include/cgal' folder '/include' folder. set compiler definition cgal library on pc.

  3. download , extract gmp library , mpfr library drive, , add these folders 'include directory' in project configuration (this mandatory cgal 4.9 @ least, or receive compile errors says 'cannot find gmp.h , mpfr*.h').

  4. add compiled static or dynamic libs of cgal additional dependencies linker configuration tab under project configuration.

  5. compile , run (if use dynamic libraries cgal, have copy *.dll exe running folder)!


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -