# # $Id: CMakeLists.txt,v 1.36.2.1 2007/07/02 17:04:35 anton Exp $ # # (C) Copyright 2003-2007 Johns Hopkins University (JHU), All Rights # Reserved. # # --- begin cisst license - do not edit --- # # This software is provided "as is" under an open source license, with # no warranty. The complete license can be found in license.txt and # http://www.cisst.org/cisst/license.txt. # # --- end cisst license --- # Backward compatibility CMAKE_MINIMUM_REQUIRED(VERSION 2.0) PROJECT(cisstExamples) # Set the ouptut path for the libraries and executables SET(LIBRARY_OUTPUT_PATH ${cisstExamples_BINARY_DIR}/lib) SET(EXECUTABLE_OUTPUT_PATH ${cisstExamples_BINARY_DIR}/bin) # Lists all examples (one per subdirectory) SET(CISST_EXAMPLES # deprecation # dynamicLoading # errorHandling # formattedOutput # helloWorld # imageTutorial # MEI_Test # MEI_ATIDAQFTTest # LoPoMoCoTest # controlThreadFLTK # kinematicsTest nArrayBenchmark # networkRobot # neuroRobot # nmrNonLinExample # numericalTutorial # pythonEmbedded # pythonEmbeddedIRE # realtimeTutorial # serialization # serialPort # simpleThreads # stereoTutorial # trackerTutorial # trajectoryThread # vectorTutorial # vectorVnlSVD # XPathConfig ) # Which examples to build FOREACH(example ${CISST_EXAMPLES}) # Build by default OPTION(BUILD_EXAMPLES_${example} "Build ${example}." ON) ENDFOREACH(example) # Don't offer packages based on dependencies # IF(NOT CISST_HAS_SWIG_PYTHON) # SET(BUILD_EXAMPLES_pythonEmbedded OFF) # SET(BUILD_EXAMPLES_pythonEmbeddedIRE OFF) # ENDIF(NOT CISST_HAS_SWIG_PYTHON) # Create targets for each example FOREACH(example ${CISST_EXAMPLES}) IF(BUILD_EXAMPLES_${example}) SUBDIRS(${example}) ENDIF(BUILD_EXAMPLES_${example}) ENDFOREACH(example) # # $Log: CMakeLists.txt,v $ # Revision 1.36.2.1 2007/07/02 17:04:35 anton # Release 0.5.1 (internal release for MICCAI 07 workshop): Modified CMakeLists.txt # to reflect files removed in this distribution # # Revision 1.36 2007/07/02 03:52:58 anton # nArrayBenchmark example: Updated CMakeLists.txt for license and integration # in cisst repository (not a stand alone project anymore) # # Revision 1.35 2007/06/10 03:02:14 anton # Example CMakeLists.txt: Updated license text and copyright dates # # Revision 1.34 2007/04/17 19:43:21 anton # cisst examples: Added example for serialization. # # Revision 1.33 2007/03/06 17:14:41 anton # cisst examples: Added short example for cisstStereoVision, now used to # test compilation and CMake settings for different OSs. # # Revision 1.32 2007/01/16 21:26:17 pkaz # cisstOSAbstraction: added dynamic loading (osaDynamicLoader and osaDynamicLoaderAndFactory). # Also added cmnPlugin.h and examples/dynamicLoading. # # Revision 1.31 2006/11/20 20:34:40 anton # Licensing: Added new license to distributed examples. # # Revision 1.30 2006/05/27 03:46:29 kapoor # cisstMRC: more code in examples, this should eventually make its way into # the main library. For now it is checked in as examples. # # Revision 1.29 2006/05/15 05:45:09 kapoor # cisstMRC: new classes for various kinematics. Will add IRE support to these. # Will add other robots too. # # Revision 1.28 2006/05/14 04:12:43 kapoor # cisstDeviceInterface Examples: Fixed Get/Set Gain data from IRE. Need # wrapping for ddiGainData. # # Revision 1.27 2006/05/04 23:37:25 kapoor # cisstDeviceInterface examples: Added MEI_test which fires the IRE and then # you can have fun(??) with MEI & IRE. # # Revision 1.26 2006/05/02 19:28:04 anton # Build tools: Major update in output directories. Libraries and executables # are now organized within "libs", "examples" and "tests" directories. Paths # can be set using the cisstvars scripts generated during the configuration # (i.e. by CMake). See ticket #215. # # Revision 1.25 2006/03/30 20:21:48 anton # cisstImage: Added typedefs based on vctDynamicMatrix to handle pixmaps of # RGB pixels (defined as vctFixedSizeVector) and a simple PPM export function. # Also added a simple test program to check that the compiler doesn't pad our # pixels and a small example program (see imageTutorial). # # Revision 1.24 2006/02/24 22:30:45 pkaz # examples: added neuroRobot project. # # Revision 1.23 2006/02/16 00:26:02 ofri # Added example of using formatted output # # Revision 1.22 2006/01/13 14:25:05 anton # cisstNumerical quick-start: Added empty LaTeX, sources, CMake configuration # to prepare the cisstNumerical quick-start document. # # Revision 1.21 2005/12/21 08:13:04 pkaz # CMakeLists.txt: added pythonEmbeddedIRE example. # # Revision 1.20 2005/09/06 22:04:15 anton # examples: Added license to files to be distributed in 0.1.0. # # Revision 1.19 2005/09/06 02:08:14 anton # CMake configuration: Created a main CMakeLists.txt for the libs, tests and # examples. A lot of code has been "factorized" in the ./CMakeLists.txt. # Known problems: "doc" is not working yet. Dependencies on SWIG projects don't # work for parallel builds. If a lib is selected and then unselected, the tests # still appear ... # # Revision 1.18 2005/08/19 04:48:54 kapoor # Example::trajectory: Checked in a prototype example. This is pre^\inf alpha # code. Just put for safekeeping, and possible sharing with Peter. Mostly # must be turned off for compilations. # # Revision 1.17 2005/08/02 06:15:33 alamora # Added entry for XPathConfig example. Demonstrates configuration with XML # config files, using XPath, Schema validation, and cmnXMLPath. Includes # some useful XPath expressions and an optional interactive (C) XPath # evaluator. # # Revision 1.16 2005/07/30 09:42:41 kapoor # Numerical: Added some examples to demonstrate cisstNumerical methods. # Examples solve a 2 x 2 ROSENBROCK function using Powells method # and Levenberg-Marquardt method (using analytic and approximate - BFGS # jacobians) # # Revision 1.15 2005/06/19 21:36:14 kapoor # ddiDeviceInterface: Added a example for mei atidaqft for windows. # # Revision 1.14 2005/06/17 23:06:15 anton # Examples: Now inherit Python settings from libs. # # Revision 1.13 2005/06/17 21:34:33 anton # cisst CMake for examples: Major update to ease configuration. # # Revision 1.12 2005/05/04 13:39:24 anton # Examples main CMakeLists: Added serialPort, realtimeTutorial and removed # tclEmbedded, vectorSVD. # # Revision 1.11 2005/02/03 21:15:25 ofri # Added example of using deprecated methods and classes. Class deprecation # needs further study. # # Revision 1.10 2004/11/11 20:46:52 anton # examples: Added better examples for the tutorial, separated in small files # which can be included directly in our LaTeX document. # # Revision 1.9 2004/10/28 04:51:58 anton # wrapping: Tried to reproduce the pythonEmbedded in Tcl. It's getting close # but the cmnObjectRegister_Get doesn't work yet. Also, it's a bit harder to # evaluate simple strings, start an interactive shell and get back to C code. # # Revision 1.8 2004/10/27 14:45:26 anton # Examples: Added an example using nmrSVDSolver (CLAPACK based) and modified # vectorVnlSVD so that its input is similar to vectorSVD. # # Revision 1.7 2004/10/08 19:41:25 anton # Examples: Added vector example using vnl for an SVD decomposition. Ofri # wrote the code. # # Revision 1.6 2004/10/05 14:56:05 anton # Examples: Started an example to demonstrate how to use cisst to embed # a python shell in a C++ application. This example is currently stand- # alone as I am using it to test new features to be included in cisst. # # Revision 1.5 2004/05/04 14:30:12 anton # - Created a list of examples with an option to build or not # - Added simpleThreads # - Removed the LINK_LIBRARIES(${CISST_LIBRARIES}), replaced by # CISST_REQUIRES for each example # # Revision 1.4 2003/11/14 22:06:50 anton # Added errorHandling example to repository # # Revision 1.3 2003/11/11 21:59:21 anton # Added more warnings for gcc # # Revision 1.2 2003/10/20 17:27:11 anton # Added vectorTutorial # # Revision 1.1.1.1 2003/10/15 16:17:32 anton # creation # #