Subject: CGAL users discussion list
List archive
- From: Bagga <>
- To:
- Subject: [cgal-discuss] Compiling a basic CGAL program in C++ on Mac OS X 10.7.2
- Date: Tue, 6 Dec 2011 12:52:48 -0800 (PST)
*When I tried to compile Voronoi_Diagram_2 example I am getting this output:*
singhg@~/Programming/examples/Voronoi_diagram_2
$ cmake
-DCGAL_DIR=/opt/local/lib/cmake/
CMake Error at CMakeLists.txt:20 (include):
include could not find load file:
/opt/local//opt/local/lib/cmake/UseCGAL.cmake
CMake Error at CMakeLists.txt:22 (include):
include could not find load file:
CGAL_CreateSingleSourceCGALProgram
CMake Error at CMakeLists.txt:26 (create_single_source_cgal_program):
Unknown CMake command "create_single_source_cgal_program".
-- Configuring incomplete, errors occurred!
*Please help!*
*Here is the CmakeLists.txt I am using:*
# Created by the script cgal_create_cmake_script
# This is the CMake script for compiling a CGAL application.
project( Voronoi_diagram_2_example )
cmake_minimum_required(VERSION 2.6.2)
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" VERSION_GREATER 2.6)
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}"
VERSION_GREATER 2.8.3)
cmake_policy(VERSION 2.8.4)
else()
cmake_policy(VERSION 2.6)
endif()
endif()
find_package(CGAL QUIET COMPONENTS Core )
if ( CGAL_FOUND )
include( ${CGAL_USE_FILE} )
include( CGAL_CreateSingleSourceCGALProgram )
include_directories (BEFORE ../../include)
create_single_source_cgal_program( "vd_2_point_location.cpp" )
else()
message(STATUS "This program requires the CGAL library, and will not be
compiled.")
endif()
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Compiling-a-basic-CGAL-program-in-C-on-Mac-OS-X-10-7-2-tp4166413p4166413.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Compiling a basic CGAL program in C++ on Mac OS X 10.7.2, Bagga, 12/06/2011
- Re: [cgal-discuss] Compiling a basic CGAL program in C++ on Mac OS X 10.7.2, Sebastien Loriot (GeometryFactory), 12/07/2011
- [cgal-discuss] Re: Compiling a basic CGAL program in C++ on Mac OS X 10.7.2, Bagga, 12/07/2011
- Re: [cgal-discuss] Re: Compiling a basic CGAL program in C++ on Mac OS X 10.7.2, Sebastien Loriot (GeometryFactory), 12/08/2011
- [cgal-discuss] Re: Compiling a basic CGAL program in C++ on Mac OS X 10.7.2, Bagga, 12/07/2011
- Re: [cgal-discuss] Compiling a basic CGAL program in C++ on Mac OS X 10.7.2, Sebastien Loriot (GeometryFactory), 12/07/2011
Archive powered by MHonArc 2.6.16.