Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] CMake

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] CMake


Chronological Thread 
  • From: "Matei Stroila" <>
  • To:
  • Subject: Re: [cgal-discuss] CMake
  • Date: Sun, 4 Feb 2007 07:55:04 -0600
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QT+F6AVdYEy1okOP5iq+lBAx/2RsQaZ94txOv6sM4D3CqlQrK8XjceGO/66WiFqPpikc4d0VSAEqKtRbJZq9wyowIGXiWmj68Qi/kw+KBVkO3+2L+NKCFAvxRGjOkCwZRYygXVfEyMcn/f/6ZHgQHmBZN5CtUaiVoTuYu1ejDuc=

Hi Philippe,

I am not sure if this helps, but this is how I use CMake to configure
my projects that use CGAL. It works well on any platform you have CGAL
compiled. I know that this is different than building CGAL itself with
CMake.

SET(CGAL_INCLUDE_PATH "C:/Program Files/CGAL-3.2/include" CACHE PATH
"Path to CGAL include files" )
SET(GMP_INCLUDE_PATH "C:/Program Files/CGAL-3.2/auxiliary/gmp/include"
CACHE PATH "Path to GMP include files" )
SET(CGAL_CONFIG_H_PATH "C:/Program
Files/CGAL-3.2/include/CGAL/config/msvc7" CACHE PATH "Path to
compiler_config.h" )
INCLUDE_DIRECTORIES(
${CGAL_INCLUDE_PATH} ${CGAL_CONFIG_H_PATH} ${GMP_INCLUDE_PATH}
)
SET(CGAL_LIB_PATH "C:/Program Files/CGAL-3.2/lib/msvc7" CACHE PATH
"Path to CGAL lib" )
SET(GMP_LIB_PATH "C:/Program Files/CGAL-3.2/auxiliary/gmp/lib" CACHE
PATH "Path to GMP lib" )

LINK_DIRECTORIES( ${CGAL_LIB_PATH} ${GMP_LIB_PATH})

TARGET_LINK_LIBRARIES(yourExecutable
CGAL
gmp
)

Matei

On 2/4/07, Philippe P. Pebay
<>
wrote:
Hello everyine.

I am new to the discussion list, so my apologies if the question has
already been asked (could not find the topic in the archive, though).

Has anyone ever considered CMake'ifying CGAL ?

Thanks
Philippe

--
Philippe P. Pebay |

Sandia National Laboratories
PO Box 969, MS 9051
Livermore, CA 94550 U.S.A.
Phone: +1 925 294 2024

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss




Archive powered by MHonArc 2.6.16.

Top of Page