From e6a1b7fa2fdff4945e708f5c1688e2e3b8c3f169 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Wed, 1 Oct 2008 09:48:47 +0000 Subject: [PATCH] CMakeLists.txt is needed as tests depend on PDB lib --- PDB/test/PDB/CMakeLists.txt | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 PDB/test/PDB/CMakeLists.txt diff --git a/PDB/test/PDB/CMakeLists.txt b/PDB/test/PDB/CMakeLists.txt new file mode 100644 index 00000000000..f918c1ff78e --- /dev/null +++ b/PDB/test/PDB/CMakeLists.txt @@ -0,0 +1,31 @@ +# This is the CMake script for compiling a CGAL application. + +project( pdb ) + +CMAKE_MINIMUM_REQUIRED(VERSION 2.4.5) + +set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true) + +find_package(CGAL REQUIRED PDB ) +include( ${CGAL_USE_FILE} ) + + +if (CGAL_PDB_FOUND ) + +include(CreateSingleSourceCGALProgram) + +create_single_source_cgal_program( check_bonds.cpp ) +create_single_source_cgal_program( check_heatom.cpp ) +create_single_source_cgal_program( check_pdb.cpp ) +create_single_source_cgal_program( check_protein.cpp ) +create_single_source_cgal_program( check_refine_alignment.cpp ) +create_single_source_cgal_program( check_transform.cpp ) +create_single_source_cgal_program( check_transforms.cpp ) + + + +else() + + message(STATUS "NOTICE: This demo requires PDB, and will not be compiled.") + +endif()