Subject: CGAL users discussion list
List archive
- From: Joachim Reichel <>
- To:
- Subject: Re: [cgal-discuss] CGAL find script for cmake
- Date: Wed, 19 Dec 2012 18:51:15 +0100
Hi,
On 12/19/2012 05:58 PM, Sascha Räsch wrote:
> On 28.11.2012 17:23, Sascha Räsch wrote:
>> hi all,
>>
>> I've got a CMake-based project which requires CGAL.
>> Therefore, I'm using a CGAL find script, which I've found in my CGAL
>> installation folder.
>> This script is located at:
>>
>> {CGAL INSTALLATION FOLDER}/lib/CGAL/FindCGAL.cmake
>>
>> If I'm right, this script searches the CGAL configuration located at:
>>
>> {CGAL INSTALLATION FOLDER}/lib/CGAL/CGALConfig.cmake
>>
>> Inside that configuration file, all include directories and libraries
>> are specified with absolute paths.
>> Through the absolute paths, the library is not portable.
>> I'd like to copy the whole library to some other computer and compile
>> my project without reinstalling and recompiling CGAL.
>>
>> Is there a find script which avoids the CGAL config file or can I
>> change the CMake-configuration of the CGAL-build
>> project s.t. the resulting CGALConfig.cmake file uses relative paths.
>
> a few weeks ago, I had a question about CGAL find scripts for cmake,
> i.e., using CGAL in another CMAKE-Project.
> Unfourtnately, I got no answer to my question.
> Could someone tell me who's the author of the CGAL find scripts?
> I'm grateful for any ideas :).
Maybe it would have helped if you'd explain why you want to be able to
build your project on the other computer but don't want to deal with
building CGAL on that machine.
Not sure if cmake has a function for "give me the absolute path for the
current file". If not, the path has to be hard-coded somewhere ...
Can't you just use the same install location for CGAL on both machines?
If not, can't you adjust the absolute paths in CGALConfig.cmake (for
example with sed) automatically in some kind of "installer" for the
other machine?
Is CGAL the only problematic library? What about GMP, MPFR, etc.? Are
they at the same location on the other machine?
Joachim
- Re: [cgal-discuss] CGAL find script for cmake, Sascha Räsch, 12/19/2012
- Re: [cgal-discuss] CGAL find script for cmake, Joachim Reichel, 12/19/2012
Archive powered by MHonArc 2.6.18.