Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] How to write my own cgal program?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] How to write my own cgal program?


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] How to write my own cgal program?
  • Date: Thu, 10 Nov 2011 08:25:30 +0100

mq_wei wrote:
Dear all,
I am a newer of CGAL and have never used the cross platform libraries like cgal. I have some questions as listed below:
(1) I found in every examples, there is a cmakelists.txt file. Does it mean I must write a cmakelists.txt file for each my project?
Correct.

(2) I have installed the CGAL in VS2008 successfully, and can run the demos and examples after complilation.
But how can i write my cgal codes in vs2008? Does it follow like this: first, creat a project; secondly, add files(.h and .cpp formats); Once those two steps are done, i build all solution, but it cannot find the header files of cgal. Does it mean i should write a cmakelists.txt file and use cmake to compile to generate a .sln file? Many thanks for your reply.
I am not that familiar with VS but from what I understand, you need to
write a CMakeLists.txt and generate a .sln with cmake and that's it
(you don't need to create a new project and so on because this is the
purpose of using cmake for that).

Note that if your project is not too complicated, you can use the script
cgal_create_cmake_scripts in the scripts directory. Note that to run it,
you'll need sh ( i.e. using a cygwin or Mingw environment). If you
don't have such an environment, then you can try to modify an existing
CMakeLists.txt as a start point.


Sebastien.

Best regards,
Mengqiong Wei






Archive powered by MHonArc 2.6.16.

Top of Page