mirror of https://github.com/CGAL/cgal
readded link_libraries
This commit is contained in:
parent
e685f94191
commit
6eafd776c7
|
|
@ -107,6 +107,27 @@ David A. Wheeler's 'SLOCCount'</a>, restricted to the <code>include/CGAL/</code>
|
|||
<div>
|
||||
<p> Release date: </p>
|
||||
|
||||
<h3>Installation</h3>
|
||||
<ul>
|
||||
<li>This is the last release whose <tt>UseCGAL.cmake</tt> file (if
|
||||
using CGAL in a CMake build environment)
|
||||
contains the line <tt>link_libraries(${CGAL_LIBRARIES_DIR}
|
||||
${CGAL_3RD_PARTY_LIBRARIES_DIRS})</tt>, as this is a deprecated
|
||||
CMake command. The correct way to link with CGAL's libraries (as for
|
||||
required 3rd party libraries) is to use
|
||||
<tt>target_link_libraries</tt> which specifies for each build target
|
||||
which libraries should be linked. The following serves as example:</BR>
|
||||
<tt> find_package(CGAL)</BR>
|
||||
include(${CGAL_USE_FILE}) </BR>
|
||||
add_executable(myexe main.cpp) </BR>
|
||||
target_link_libraries(myexe ${CGAL_LIBRARIES})</BR>
|
||||
</tt>
|
||||
We also expect further changes in CGAL's CMake setup (change of
|
||||
variable names, consistency of filename and output, removing
|
||||
essential libraries, building executables).
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<h3>3D Fast Intersection and Distance Computation</h3>
|
||||
<ul>
|
||||
<li> Update requirements of the concepts <code>AABBTraits</code> and <code>AABBGeomTraits</code> to match the implementation of the package.
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ if(NOT USE_CGAL_FILE_INCLUDED)
|
|||
add_definitions ( ${CGAL_3RD_PARTY_DEFINITIONS} ${CGAL_DEFINITIONS} )
|
||||
|
||||
link_directories ( ${CGAL_LIBRARIES_DIR} ${CGAL_3RD_PARTY_LIBRARIES_DIRS} )
|
||||
link_libraries ( ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
|
||||
|
||||
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Reference in New Issue