Add CMakeLists.txt and rename demo

This commit is contained in:
Andreas Fabri 2008-10-01 08:33:23 +00:00
parent 262d84c687
commit 66f38c1fe3
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
# This is the CMake script for compiling a CGAL application.
project( Convex_decomposition_3 )
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 )
# The executable itself.
add_executable ( convex_decomposition_3
convex_decomposition_3.cpp )
target_link_libraries( nef_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
else()
message(STATUS "NOTICE: This demo requires CGAL and Qt3, and will not be compiled.")
endif()