mirror of https://github.com/CGAL/cgal
First fix for Windows: the auto-linking needs link_directories commands
This commit is contained in:
parent
455fcb0109
commit
70e00b3d6e
|
|
@ -50,6 +50,8 @@ if(OPENGL_FOUND)
|
||||||
|
|
||||||
include_directories( ${CGAL_3RD_PARTY_INCLUDE_DIRS} ${CGAL_ImageIO_3RD_PARTY_INCLUDE_DIRS} )
|
include_directories( ${CGAL_3RD_PARTY_INCLUDE_DIRS} ${CGAL_ImageIO_3RD_PARTY_INCLUDE_DIRS} )
|
||||||
|
|
||||||
|
link_directories ( ${CGAL_LIBRARIES_DIR} ${CGAL_3RD_PARTY_LIBRARIES_DIRS} )
|
||||||
|
|
||||||
collect_cgal_library( CGAL_ImageIO CGALImageIO "")
|
collect_cgal_library( CGAL_ImageIO CGALImageIO "")
|
||||||
|
|
||||||
add_dependencies( CGAL_ImageIO CGAL )
|
add_dependencies( CGAL_ImageIO CGAL )
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,8 @@ include_directories (${CGAL_3RD_PARTY_INCLUDE_DIRS})
|
||||||
|
|
||||||
add_definitions(${CGAL_3RD_PARTY_DEFINITIONS})
|
add_definitions(${CGAL_3RD_PARTY_DEFINITIONS})
|
||||||
|
|
||||||
|
link_directories ( ${CGAL_LIBRARIES_DIR} ${CGAL_3RD_PARTY_LIBRARIES_DIRS} )
|
||||||
|
|
||||||
collect_cgal_library(CGAL_Core CGALCore "")
|
collect_cgal_library(CGAL_Core CGALCore "")
|
||||||
|
|
||||||
target_link_libraries( CGAL_Core ${CGAL_LIBRARY} ${CGAL_3RD_PARTY_LIBRARIES} )
|
target_link_libraries( CGAL_Core ${CGAL_LIBRARY} ${CGAL_3RD_PARTY_LIBRARIES} )
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,8 @@ if( QT4_FOUND )
|
||||||
|
|
||||||
include_directories( ${CGAL_3RD_PARTY_INCLUDE_DIRS} ${CGAL_Qt4_3RD_PARTY_INCLUDE_DIRS} )
|
include_directories( ${CGAL_3RD_PARTY_INCLUDE_DIRS} ${CGAL_Qt4_3RD_PARTY_INCLUDE_DIRS} )
|
||||||
|
|
||||||
|
link_directories ( ${CGAL_LIBRARIES_DIR} ${CGAL_3RD_PARTY_LIBRARIES_DIRS} )
|
||||||
|
|
||||||
collect_cgal_library( CGAL_Qt4 CGALQt4 "${additional_files}")
|
collect_cgal_library( CGAL_Qt4 CGALQt4 "${additional_files}")
|
||||||
|
|
||||||
add_dependencies( CGAL_Qt4 CGAL )
|
add_dependencies( CGAL_Qt4 CGAL )
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,8 @@ if( QT3_FOUND )
|
||||||
|
|
||||||
include_directories( ${CGAL_3RD_PARTY_INCLUDE_DIRS} ${CGAL_Qt3_3RD_PARTY_INCLUDE_DIRS} )
|
include_directories( ${CGAL_3RD_PARTY_INCLUDE_DIRS} ${CGAL_Qt3_3RD_PARTY_INCLUDE_DIRS} )
|
||||||
|
|
||||||
|
link_directories ( ${CGAL_LIBRARIES_DIR} ${CGAL_3RD_PARTY_LIBRARIES_DIRS} )
|
||||||
|
|
||||||
# Make sure QT3_AUTOMOC compiler can find CGALQt3 include files
|
# Make sure QT3_AUTOMOC compiler can find CGALQt3 include files
|
||||||
include_directories( BEFORE ${CGAL_INCLUDE_DIRS} )
|
include_directories( BEFORE ${CGAL_INCLUDE_DIRS} )
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue