From 077bd81f9eac7af745f793ce46b6935f281e9bbb Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Thu, 25 Sep 2008 13:37:33 +0000 Subject: [PATCH] Add CMakeLists.txt --- .../demo/Snap_rounding_2/CMakeLists.txt | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Snap_rounding_2/demo/Snap_rounding_2/CMakeLists.txt diff --git a/Snap_rounding_2/demo/Snap_rounding_2/CMakeLists.txt b/Snap_rounding_2/demo/Snap_rounding_2/CMakeLists.txt new file mode 100644 index 00000000000..7545decae79 --- /dev/null +++ b/Snap_rounding_2/demo/Snap_rounding_2/CMakeLists.txt @@ -0,0 +1,37 @@ +# This is the CMake script for compiling a CGAL application. + +project( snap_rounding_2 ) + +CMAKE_MINIMUM_REQUIRED(VERSION 2.4.5) + +set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true) + +find_package(CGAL REQUIRED Qt3 ) +include( ${CGAL_USE_FILE} ) + +find_package(Qt3-patched QUIET) +# FindQt3-patched.cmake is FindQt3.cmake patched by CGAL developers, so +# that it can be used together with FindQt4: all its variables are prefixed +# by "QT3_" instead of "QT_". + +if ( CGAL_FOUND AND QT3_FOUND ) + + # use the Qt MOC preprocessor on classes that derives from QObject + include( Qt3Macros-patched ) + qt3_generate_moc( snap_rounding_2_toolbar.h snap_rounding_2_toolbar.moc ) + qt3_generate_moc( snap_rounding_2.h snap_rounding_2.moc ) + + + # The executable itself. + add_executable ( snap_rounding_2 + snap_rounding_2.cpp snap_rounding_2.moc + snap_rounding_2_toolbar.cpp snap_rounding_2_toolbar.moc + ) + + target_link_libraries( snap_rounding_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} ) + +else() + + message(STATUS "NOTICE: This demo requires CGAL and Qt3, and will not be compiled.") + +endif()