# Created by the script cgal_create_cmake_script # This is the CMake script for compiling a CGAL application. project (Alpha_shape_3) cmake_minimum_required(VERSION 2.4.5) set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true) if ( COMMAND cmake_policy ) cmake_policy( SET CMP0003 NEW ) endif() 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 QUIET) find_package(OpenGL QUIET) find_package(QGLViewer QUIET) if ( CGAL_FOUND AND QT_FOUND AND OPENGL_FOUND AND QGLVIEWER_FOUND ) include(${QT_USE_FILE}) include_directories (${QGLVIEWER_INCLUDE_DIR}) include_directories (BEFORE ../../include) qt4_wrap_ui( uis MainWindow.ui ) qt4_automoc( MainWindow.cpp Viewer.cpp) add_executable ( Alpha_shape_3 Alpha_shape_3.cpp MainWindow.cpp Viewer.cpp ${uis} ) target_link_libraries( Alpha_shape_3 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES}) target_link_libraries( Alpha_shape_3 ${QT_LIBRARIES} ${QGLVIEWER_LIBRARY} ) target_link_libraries( Alpha_shape_3 ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} ) else() message(STATUS "NOTICE: This demo requires CGAL, the QGLViewer, OpenGL and Qt4, and will not be compiled.") endif()