내 컴퓨터에서 프로그램을 실행할 수 있기를 원합니다. Macports를 사용하여 CGAL을 설치 했으므로 다음 단계로 진행하는 방법을 모르겠습니다. 사람, 나는 필사적으로 다음 프로그램을 실행하려고 프로그램을 실행하는 방법을 말해 줄 수 있지만 모르는 방법 :OS X에서 CGAL C++ 프로그램을 실행 하시겠습니까?
#include <iostream>
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/convex_hull_2.h>
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef K::Point_2 Point_2;
int main()
{
Point_2 points[5] = { Point_2(0,0), Point_2(10,0), Point_2(10,10), Point_2(6,5), Point_2(4,1) };
Point_2 result[5];
Point_2 *ptr = CGAL::convex_hull_2(points, points+5, result);
std::cout << ptr - result << " points on the convex hull:" << std::endl;
for(int i = 0; i < ptr - result; i++){
std::cout << result[i] << std::endl;
}
return 0;
}
파일이 * .C 또는 * .cpp이면 * .cc 또는 * .cxx 또는 다른 이름의 파일은 무시됩니다. –
'cgal_create_CMakeLists'는 최신 버전이 아닙니까? 'cgal_create_cmake_script' 만 Qt3을 알고 있습니다 ... –
[참으로] (http://doc.cgal.org/latest/Manual/installation.html#title38) – sloriot