Subject: CGAL users discussion list
List archive
- From: "Juan Pablo Carbajal" <>
- To:
- Subject: [cgal-discuss] Cmake compile
- Date: Tue, 7 Oct 2008 16:27:41 +0200
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition:x-google-sender-auth; b=ZnEhmoFKjcIlbcVrO13fbU51aBqJ9MisQgQuF/tMxVbKSGTZRp6W/UdZGKNu/qBCVF ZClJuFymrWaxlR0QefALtaGazHROhdvNQMozo1P7bLE6DZcXC03ZTQIDCzSEVZ8rfXL0 EhlmvBqMRfRUSwFkTqX7EkdfA8VOqF1m1BB68=
Hi all,
Thanks for all the answers. I somehow figure out how to do what I needed.
I am including CGAL in one of my projects and maybe I can share with
you some of my stuff.
1. I am using CMake and I have read somewhere in CGAL webpage that
somebody is working on it. Here is my CMakeList.txt. This works under
Linux Ubuntu 8.04. I hope it helps someone.
cmake_minimum_required(VERSION 2.6)
PROJECT(tracker_test)
SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
SET(CMAKE_USE_RELATIVE_PATHS on)
SET(CMAKE_C_FLAGS_RELEASE "-O3 -Wall -frounding-math -Wall
-DCGAL_USE_F2C -DCGAL_USE_F2C")
SET (CMAKE_BUILD_TYPE Release)
LINK_DIRECTORIES(../lib ../lib/CGAL)
INCLUDE_DIRECTORIES(../lib ../lib/CGAL/config/i686_Linux-2.6_g++-4.2.3)
SET (Libraries CGAL CGALcore++ CGALimageIO CGALPDB lapack GL GLU blas
g2c z mpfr gmpxx gmp X11 boost_program_options m)
SET(CurrentStatic alpha_shape)
ADD_LIBRARY(${CurrentStatic} STATIC
alpha_shape.h
alpha_shape.cpp)
TARGET_LINK_LIBRARIES(${CurrentStatic} ${Libraries})
ADD_EXECUTABLE(tracker_test test.cpp)
TARGET_LINK_LIBRARIES(tracker_test alpha_shape)
This file compiles a static library and a test program. I have the
complete (~17.5MB) CGAL/include directory copied into my project
$PROJECT_HOME/lib/CGAL directory with all the libraries from the
CGAL/lib directory. This will change in the future because I am not
using all the includes, just a small part.
Cheers,
JPi
- [cgal-discuss] Cmake compile, Juan Pablo Carbajal, 10/07/2008
- Re: [cgal-discuss] Cmake compile, Laurent Rineau, 10/07/2008
Archive powered by MHonArc 2.6.16.