mirror of https://github.com/CGAL/cgal
Use CGAL_HEADERS_ONLY everywhere
This commit is contained in:
parent
94f2565c6a
commit
35a11c0e13
|
|
@ -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} )
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue