From f6ccb37436930154a01ac1856d7a4fbce726039d Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Tue, 31 Aug 2010 16:50:19 +0000 Subject: [PATCH] Initial support for CTest. --- .../cgal_create_cmake_script_with_options | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/Scripts/scripts/cgal_create_cmake_script_with_options b/Scripts/scripts/cgal_create_cmake_script_with_options index 6bbefedbf76..2f01fa1a6ff 100755 --- a/Scripts/scripts/cgal_create_cmake_script_with_options +++ b/Scripts/scripts/cgal_create_cmake_script_with_options @@ -155,6 +155,9 @@ endif() # CGAL and its components EOF +if [ -n "$ENABLE_CTEST" ]; then + echo "enable_testing()" +fi #--------------------------------------------------------------------------- # CGAL and its components @@ -419,6 +422,8 @@ EOF echo "include( CGAL_CreateSingleSourceCGALProgram )" fi + # add a new line + echo # Qt3 if [ "$qt3" = "y" ]; then @@ -483,7 +488,27 @@ EOF else echo "create_single_source_cgal_program( \"$file\" )" fi + if [ -n "$ENABLE_CTEST" ]; then + if [ -f "$BASE.cin" ] ; then + CIN=" < $BASE.cin" + else + CIN= + fi + cat <