Remove use of qt5_use_modules (warned deprecated with CMake-3.14)

This commit is contained in:
Laurent Rineau 2019-06-14 15:15:40 +02:00
parent b6759f63d2
commit 395e4965b7
2 changed files with 1 additions and 5 deletions

View File

@ -30,9 +30,8 @@ set(CMAKE_AUTOMOC ON)
# The executable itself.
add_executable ( boolean_operations_2 ${CMAKE_CURRENT_SOURCE_DIR}/boolean_operations_2.cpp ${CGAL_Qt5_MOC_FILES} ${CDT_UI_FILES} ${CGAL_Qt5_RESOURCE_FILES} )
qt5_use_modules(boolean_operations_2 Widgets Script Svg)
# Link with Qt libraries
target_link_libraries( boolean_operations_2 ${QT_LIBRARIES} )
target_link_libraries( boolean_operations_2 Qt5::Widgets Qt5::Script Qt5::Svg )
# Link with CGAL
target_link_libraries( boolean_operations_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})

View File

@ -73,9 +73,6 @@ if ( CGAL_FOUND )
find_package(Qt5 QUIET)
if( Qt5_FOUND )
create_link_to_program(CGAL_Qt5)
if (CGAL_HEADER_ONLY)
qt5_use_modules(link_to_CGAL_Qt5)
endif()
endif()
endif()