-SET(
- examples_SOURCES
- example_LoadPluginsFile
- example_LoadPluginsDirectory
- example_ReadWriteImage
- example_ReadWriteImageWithWorkspace
- )
-FOREACH(example ${examples_SOURCES})
- ADD_EXECUTABLE(${example} ${example}.cxx)
- TARGET_LINK_LIBRARIES(${example} cpPlugins)
-ENDFOREACH(example)
+OPTION(BUILD_EXAMPLES "Build examples" OFF)
+IF(BUILD_EXAMPLES)
+ SUBDIRS(plugins)
+ENDIF(BUILD_EXAMPLES)
## eof - $RCSfile$