Added ability to disable the use of DSR-PDB (disabled by default) dev
authorDmitriy Morozov <morozov@cs.duke.edu>
Fri, 14 Mar 2008 20:21:15 -0400
branchdev
changeset 50 264e05b89875
parent 49 7558e122ba4f
child 51 0a18d6902a55
Added ability to disable the use of DSR-PDB (disabled by default)
CMakeLists.txt
README
examples/grid/CMakeLists.txt
--- a/CMakeLists.txt	Fri Mar 14 18:35:41 2008 -0400
+++ b/CMakeLists.txt	Fri Mar 14 20:21:15 2008 -0400
@@ -4,12 +4,15 @@
 option						(counters			"Build Dionysus with counters on" 		OFF)
 option						(debug				"Build Dionysus with debugging on" 		OFF)
 option						(optimize			"Build Dionysus with optimization"		ON)
+option						(use_dsrpdb			"Build examples that use DSR-PDB"		OFF)
 
 # Find everything that's always required
 find_package				(Boost REQUIRED)
 find_package				(Doxygen)
-find_library				(dsrpdb_LIBRARY 			NAMES dsrpdb)
-find_path					(dsrpdb_INCLUDE_DIR 		dsrpdb/Protein.h)
+if                          (use_dsrpdb)
+    find_library			(dsrpdb_LIBRARY 			NAMES dsrpdb)
+    find_path				(dsrpdb_INCLUDE_DIR 		dsrpdb/Protein.h)
+endif                       (use_dsrpdb)
 
 #CGAL
 execute_process				(COMMAND ${CMAKE_MAKE_PROGRAM} -f ${CMAKE_CURRENT_SOURCE_DIR}/FindCGAL.Makefile libpaths
--- a/README	Fri Mar 14 18:35:41 2008 -0400
+++ b/README	Fri Mar 14 20:21:15 2008 -0400
@@ -1,6 +1,6 @@
 Dependencies
   CGAL-3.3 -    for alpha-shapes and kinetic data structures
-  DSR-PDB -     for reading in PDB files
+  DSR-PDB -     for reading in PDB files (if use_dsrpdb is turned on in cmake)
   CMake -       for controlling the build process
   boost -       great set of C++ libraries
   Doxygen -     for building documentation
@@ -21,9 +21,10 @@
   
   In the cmake line you can provide -Ddebug:bool=on to turn on debugging,
   -Dcounters:bool=on to turn on counters, -Doptimize:bool=on to turn on
-  optimization.  Depending on the combination of debugging and optimization, a
-  particular CMAKE_CXX_FLAGS* is chosen.  All of this can be set using a text
-  user interface by running ccmake instead of cmake.
+  optimization, -Duse_dsrpdb:bool=on to turn on reading PDB files.  Depending on
+  the combination of debugging and optimization, a particular CMAKE_CXX_FLAGS*
+  is chosen.  All of this can be set using a text user interface by running
+  ccmake instead of cmake.
 
 Author
   Dmitriy Morozov <morozov@cs.duke.edu>
--- a/examples/grid/CMakeLists.txt	Fri Mar 14 18:35:41 2008 -0400
+++ b/examples/grid/CMakeLists.txt	Fri Mar 14 20:21:15 2008 -0400
@@ -1,7 +1,12 @@
 set							(targets						
 							 test-grid2D 
-							 pdbdistance-vineyard
 							 combustion-vineyard)
+
+if                          (use_dsrpdb)
+    set                     (targets                    ${targets}
+                            							pdbdistance-vineyard)
+endif                       (use_dsrpdb)
+
 							 
 add_definitions				(${cgal_cxxflags})
 foreach 					(t ${targets})