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 <