Subject: CGAL users discussion list
List archive
- From: jeffHunter <>
- To:
- Subject: [cgal-discuss] WINDOWS - Using CMAKE to include CGAL in a library.
- Date: Tue, 3 Mar 2015 16:30:57 -0800 (PST)
I'm trying to organize some code that uses CGAL into a suite of CMake
packages so that I can reuse them in various projects easily. I'm having
trouble writing the necessary CMake files. I must be doing something
incorrectly as the CGAL_XXX variables that CGAL_USE_FILE is supposed to set
up are blank. Using Windows and Visual Studio 12 2013.
The basic structure is like this:
geometry - (Depends on CGAL)
graphics - (Depends on geometry)
engine - (Depends on both geometry and graphics)
main - (Depends on all three)
As far as I understand, shared libraries are preferable in this situation,
but please correct me if there is a better solution. Ideally graphics would
just have to reference geometry, and not geometry AND CGAL, but I'm not sure
that's possible. Anyways, the CMakeLists.txt for geometry looks something
like this:
When this runs, the ${CGAL_LIBRARIES} and ${CGAL_3RD_PARTY_LIBRARIES} are
both blank:
When attempting to build the generated Visual Studio project, this line is
encountered:
That .lib file definitely exists and has been installed. So what am I doing
wrong?
Is there a canonically best way of including CGAL into CMake style packages?
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/WINDOWS-Using-CMAKE-to-include-CGAL-in-a-library-tp4660553.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] WINDOWS - Using CMAKE to include CGAL in a library., jeffHunter, 03/04/2015
Archive powered by MHonArc 2.6.18.