Fix when Qt5 is not found

This commit is contained in:
Laurent Rineau 2017-11-28 10:28:50 +01:00
parent 28bd89af65
commit 0f63e872c1
1 changed files with 14 additions and 13 deletions

View File

@ -44,6 +44,17 @@ if(NOT OPENGL_FOUND)
endif() endif()
#.rst:
# Result Variables
# ^^^^^^^^^^^^^^^^
#
# .. variable:: CGAL_Qt5_FOUND
#
# Set to `TRUE` if the dependencies of `CGAL_Qt5` were found.
#
if(NOT CGAL_Qt5_MISSING_DEPS)
set(CGAL_Qt5_FOUND TRUE)
include(${CMAKE_CURRENT_LIST_DIR}/CGAL_Qt5_moc_and_resource_files.cmake) include(${CMAKE_CURRENT_LIST_DIR}/CGAL_Qt5_moc_and_resource_files.cmake)
if(NOT TARGET CGAL_Qt5_moc_and_resources) if(NOT TARGET CGAL_Qt5_moc_and_resources)
@ -57,16 +68,6 @@ if(NOT TARGET CGAL_Qt5_moc_and_resources)
add_library(CGAL::Qt5_moc_and_resources ALIAS CGAL_Qt5_moc_and_resources) add_library(CGAL::Qt5_moc_and_resources ALIAS CGAL_Qt5_moc_and_resources)
endif() endif()
#.rst:
# Result Variables
# ^^^^^^^^^^^^^^^^
#
# .. variable:: CGAL_Qt5_FOUND
#
# Set to `TRUE` if the dependencies of `CGAL_Qt5` were found.
#
if(NOT CGAL_Qt5_MISSING_DEPS)
set(CGAL_Qt5_FOUND TRUE)
endif() endif()
#get_property(QT_UIC_EXECUTABLE TARGET Qt5::uic PROPERTY LOCATION) #get_property(QT_UIC_EXECUTABLE TARGET Qt5::uic PROPERTY LOCATION)