Add link_to_CGAL_Qt5

This commit is contained in:
Laurent Rineau 2015-07-13 17:37:52 +02:00
parent 6dcd671ffe
commit 72104a5d29
2 changed files with 18 additions and 0 deletions

View File

@ -69,6 +69,13 @@ if ( CGAL_FOUND )
endif()
endif()
if ( WITH_CGAL_Qt5 )
find_package(Qt5 QUIET COMPONENTS OpenGL Svg)
if( Qt5_FOUND )
create_link_to_program(CGAL_Qt5)
endif()
endif()
if(WIN32)
add_executable(test_gmp_mpfr_dll test_gmp_mpfr_dll.cpp)
target_link_libraries(test_gmp_mpfr_dll Version)

View File

@ -0,0 +1,11 @@
// Use something defined not in headers but in the CGAL library to test that is was indeed properly built and linked to,
#include <CGAL/Qt/utility.h>
typedef QRectF (*mapToSceneFunction)(const QGraphicsView* , const QRect);
int main()
{
mapToSceneFunction f = CGAL::Qt::mapToScene;
return (&f > 0) ? 0 : 1;
}