mirror of https://github.com/CGAL/cgal
Add link_to_CGAL_Qt5
This commit is contained in:
parent
6dcd671ffe
commit
72104a5d29
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
Loading…
Reference in New Issue