changeset 2551:3fe122bac48b

added option not to build tools and converters
author Vladimir S. FONOV <vladimir.fonov@gmail.com>
date Thu, 08 Dec 2011 18:41:27 -0500
parents 1a69a4b622eb
children 345f8c960657
files CMakeLists.txt
diffstat 1 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,8 +16,8 @@
 # Packaging defines
 SET(CPACK_GENERATOR TGZ)
 SET(CPACK_PACKAGE_VERSION_MAJOR 2)
-SET(CPACK_PACKAGE_VERSION_MINOR 0)
-SET(CPACK_PACKAGE_VERSION_PATCH 17)
+SET(CPACK_PACKAGE_VERSION_MINOR 1)
+SET(CPACK_PACKAGE_VERSION_PATCH 1)
 INCLUDE(CPack)
 
 
@@ -29,6 +29,8 @@
 SET(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
 
 OPTION(BUILD_MINC2      "Support minc2 file format" ON)
+OPTION(BUILD_TOOLS      "Build minc tools (mincreshape,mincresample, etc)" ON)
+OPTION(BUILD_CONVERTERS "Build minc conversion programs (mnc2nii, nii2mnc , dcm2mnc...)" ON)
 
 ADD_DEFINITIONS(-DHAVE_CONFIG_H)
 
@@ -226,9 +228,12 @@
 	volume_io/Include/volume_io/volume_cache.h
    DESTINATION include/volume_io)
 
+IF(BUILD_TOOLS)
 # now build the progs subdir
 ADD_SUBDIRECTORY( progs )
+ENDIF(BUILD_TOOLS)
 
+IF(BUILD_CONVERTERS)
 # and then the conversion subdir
 ADD_SUBDIRECTORY( conversion )
-
+ENDIF(BUILD_CONVERTERS)