mirror of https://github.com/CGAL/cgal
Add QUIET to find_package
This commit is contained in:
parent
f125fd60b0
commit
f67c33813d
|
|
@ -6,20 +6,20 @@ cmake_minimum_required(VERSION 2.4)
|
|||
|
||||
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
|
||||
|
||||
find_package(CGAL REQUIRED Qt4)
|
||||
|
||||
find_package(Qt4 REQUIRED)
|
||||
find_package(CGAL QUIET COMPONENTS Qt4)
|
||||
|
||||
include(${CGAL_USE_FILE})
|
||||
|
||||
|
||||
set( QT_USE_QTXML TRUE )
|
||||
set( QT_USE_QTMAIN TRUE )
|
||||
set( QT_USE_QTSCRIPT TRUE )
|
||||
set( QT_USE_QTOPENGL TRUE )
|
||||
|
||||
find_package(Qt4 REQUIRED)
|
||||
find_package(Qt4 QUIET)
|
||||
include(${QT_USE_FILE})
|
||||
|
||||
if ( CGAL_FOUND AND QT4_FOUND )
|
||||
|
||||
add_executable ( min min.cpp )
|
||||
|
||||
|
|
@ -27,4 +27,10 @@ add_executable ( min min.cpp )
|
|||
# Link with Qt libraries
|
||||
target_link_libraries( min ${QT_LIBRARIES} )
|
||||
# Link with CGAL
|
||||
target_link_libraries( min ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
|
||||
target_link_libraries( min ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "NOTICE: This demo requires CGAL and Qt4, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Reference in New Issue