Use CGAL_HEADERS_ONLY everywhere

This commit is contained in:
Clement Jamin 2016-01-15 16:02:33 +01:00 committed by Guillaume Damiand
parent 94f2565c6a
commit 35a11c0e13
3 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ link_directories ( ${CGAL_LIBRARIES_DIR} ${CGAL_3RD_PARTY_LIBRARIES_DIRS} )
collect_cgal_library(CGAL_Core "")
if(NOT ENABLE_HEADER_ONLY)
if(NOT CGAL_HEADERS_ONLY)
# CGAL_Core does not depend on CGAL in either DEBUG or RELEASE, but we
# still link it.
target_link_libraries( CGAL_Core CGAL ${CGAL_3RD_PARTY_LIBRARIES} )

View File

@ -7,7 +7,7 @@ find_package( ZLIB )
=======
#option(WITH_VTK "Add VTK support to libCGAL_ImageIO." OFF)
if (ENABLE_HEADER_ONLY)
if (CGAL_HEADERS_ONLY)
cache_set(CGAL_ImageIO_3RD_PARTY_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR})
endif()
@ -62,7 +62,7 @@ if(OPENGL_FOUND)
add_definitions( ${CGAL_3RD_PARTY_DEFINITIONS} ${CGAL_ImageIO_3RD_PARTY_DEFINITIONS} )
if (NOT ENABLE_HEADER_ONLY)
if (NOT CGAL_HEADERS_ONLY)
add_dependencies( CGAL_ImageIO CGAL )
# CGAL_ImageIO only depends on CGAL in DEBUG, but we still link it

View File

@ -79,7 +79,7 @@ link_directories ( ${CGAL_LIBRARIES_DIR} ${CGAL_3RD_PARTY_LIBRARIES_DIRS} )
collect_cgal_library( CGAL_Qt5 "${additional_files}")
if(ENABLE_HEADER_ONLY)
if(CGAL_HEADERS_ONLY)
set(CGAL_QT5_QTMOCCMAKE_FILES ${QTMOCCMAKE_FILES} CACHE INTERNAL "CGAL qt5 qtmoc cmake files")
else()
qt5_use_modules(CGAL_Qt5 OpenGL Svg)