#
# This is a recommended file for ITK dashboard submissions
# The generated file will use the current settings in the CMakeCache.txt file
# The file should be copied, edited if necessary and moved to another location
# 
# This file was generated from
# @ITK_SOURCE_DIR@/CMake/itkSampleBuildTest.cmake
#

######################
# Set the Dashboard to one of Nightly, Continuous or Experimental
#
SET(DASHBOARD Nightly) 
SET(DASHBOARD Continuous) 
SET(DASHBOARD Experimental) 

######################
# Set the Default Build Type to one of Release, Debug, RelWithDebInfo 
# or MinSizeRel
#
SET(DEFAULT_BUILD_TYPE "Debug")
SET(DEFAULT_BUILD_TYPE "RelWithDebInfo")
SET(DEFAULT_BUILD_TYPE "MinSizeRel")
SET(DEFAULT_BUILD_TYPE "Release")

IF("@CMAKE_BUILD_TYPE@" STREQUAL "")
  SET(BUILD_TYPE ${DEFAULT_BUILD_TYPE})
ELSE("@CMAKE_BUILD_TYPE@" STREQUAL "")
  SET(BUILD_TYPE @CMAKE_BUILD_TYPE@)
ENDIF("@CMAKE_BUILD_TYPE@" STREQUAL "")


# These are the the locations of the source and binary directory
SET(CTEST_SOURCE_DIRECTORY "@ITK_SOURCE_DIR@")
SET(CTEST_BINARY_DIRECTORY "@ITK_BINARY_DIR@")

# The ctest command to use for running the dashboard
SET(CTEST_COMMAND
   "@CMAKE_COMMAND@ -P \"${CTEST_BINARY_DIRECTORY}/CMake/RemoveTemporaryFiles.cmake\""
   "@CMAKE_CTEST_COMMAND@ -D ${DASHBOARD} -A \"${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}\""
)

# CMake/RemoveTemporaryFiles.cmake must exist before the CTEST_COMMAND runs
IF(NOT EXISTS ${CTEST_BINARY_DIRECTORY}/CMake/RemoveTemporaryFiles.cmake)
  SET(CTEST_CMAKE_COMMAND "@CMAKE_COMMAND@")
ENDIF(NOT EXISTS ${CTEST_BINARY_DIRECTORY}/CMake/RemoveTemporaryFiles.cmake)

# CMakeCache.txt must exist before the CTEST_COMMAND runs
IF(NOT EXISTS ${CTEST_BINARY_DIRECTORY}/CMakeCache.txt)
  SET(CTEST_CMAKE_COMMAND "@CMAKE_COMMAND@")
ENDIF(NOT EXISTS ${CTEST_BINARY_DIRECTORY}/CMakeCache.txt)

# Specify how long to run the continuous in minutes
IF(${DASHBOARD} STREQUAL "Continuous")
  SET (CTEST_CONTINUOUS_DURATION 1080)
  SET (CTEST_CONTINUOUS_MINIMUM_INTERVAL 15)
ENDIF(${DASHBOARD} STREQUAL "Continuous")

# Set defaults
SET(CTEST_START_WITH_EMPTY_BINARY_DIRECTORY FALSE)
SET(CTEST_START_WITH_EMPTY_BINARY_DIRECTORY_ONCE FALSE)

# For Nightly builds, this should be TRUE
IF(${DASHBOARD} STREQUAL "Nightly")
  SET(CTEST_START_WITH_EMPTY_BINARY_DIRECTORY TRUE)
ELSE(${DASHBOARD} STREQUAL "Nightly")
  SET(CTEST_START_WITH_EMPTY_BINARY_DIRECTORY FALSE)
ENDIF(${DASHBOARD} STREQUAL "Nightly")

# For Continuous builds. this should be TRUE
IF(${DASHBOARD} STREQUAL "Continuous")
  SET(CTEST_START_WITH_EMPTY_BINARY_DIRECTORY_ONCE TRUE)
ELSE(${DASHBOARD} STREQUAL "Continuous")
  SET(CTEST_START_WITH_EMPTY_BINARY_DIRECTORY_ONCE FALSE)
ENDIF(${DASHBOARD} STREQUAL "Continuous")

# For Experimental builds, these should be FALSE
IF(${DASHBOARD} STREQUAL "Experimental")
  SET(CTEST_START_WITH_EMPTY_BINARY_DIRECTORY FALSE)
  SET(CTEST_START_WITH_EMPTY_BINARY_DIRECTORY_ONCE FALSE)
ENDIF(${DASHBOARD} STREQUAL "Experimental")

# This is the initial cache to use for the binary tree, be careful to escape
# any quotes inside of this string if you use it
SET (CTEST_INITIAL_CACHE "
SITE:STRING=@SITE@
BUILDNAME:STRING=@BUILDNAME@
CVSCOMMAND:FILEPATH=@CVSCOMMAND@
CVS_UPDATE_OPTIONS:STRING=-d -A -P

CMAKE_C_FLAGS_RELEASE:STRING=@CMAKE_C_FLAGS_RELEASE@
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=@CMAKE_C_FLAGS_RELWITHDEBINFO@
CMAKE_CXX_FLAGS_RELEASE:STRING=@CMAKE_CXX_FLAGS_RELEASE@
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=@CMAKE_CXX_FLAGS_RELWITHDEBINFO@

TCL_TCLSH:FILEPATH=@TCL_TCLSH@
CMAKE_BUILD_TOOL:INTERNAL=@CMAKE_BUILD_TOOL@
CMAKE_MAKE_PROGRAM:FILEPATH=@CMAKE_MAKE_PROGRAM@
CMAKE_GENERATOR:INTERNAL=@CMAKE_GENERATOR@
CMAKE_CXX_COMPILER:FILEPATH=@CMAKE_CXX_COMPILER@
CMAKE_CXX_FLAGS:STRING=@CMAKE_CXX_FLAGS@
CMAKE_C_COMPILER:FILEPATH=@CMAKE_C_COMPILER@
CMAKE_C_FLAGS:STRING=@CMAKE_C_FLAGS@
CMAKE_CONFIGURATION_TYPES:STRING=${BUILD_TYPE}
CMAKE_BUILD_TYPE:STRING=${BUILD_TYPE}

BUILD_SHARED_LIBS:BOOL=@BUILD_SHARED_LIBS@
BUILD_TESTING:BOOL=@BUILD_TESTING@
BUILD_EXAMPLES:BOOL=@BUILD_EXAMPLES@

ITK_USE_PATENTED:BOOL=@ITK_USE_PATENTED@
ITK_USE_REVIEW:BOOL=@ITK_USE_REVIEW@
ITK_USE_REVIEW_STATISTICS:BOOL=@ITK_USE_REVIEW_STATISTICS@
ITK_USE_REGION_VALIDATION_IN_ITERATORS:BOOL=@ITK_USE_REGION_VALIDATION_IN_ITERATORS@
ITK_USE_CENTERED_PIXEL_COORDINATES_CONSISTENTLY:BOOL=@ITK_USE_CENTERED_PIXEL_COORDINATES_CONSISTENTLY@
ITK_USE_CONCEPT_CHECKING:BOOL=@ITK_USE_CONCEPT_CHECKING@
ITK_USE_OPTIMIZED_REGISTRATION_METHODS:BOOL=@ITK_USE_OPTIMIZED_REGISTRATION_METHODS@
ITK_USE_ORIENTED_IMAGE_DIRECTION:BOOL=@ITK_USE_ORIENTED_IMAGE_DIRECTION@
ITK_USE_DEPRECATED_LEVELSET_INTERPOLATION:BOOL=@ITK_USE_DEPRECATED_LEVELSET_INTERPOLATION@
ITK_USE_CONSOLIDATED_MORPHOLOGY:BOOL=@ITK_USE_CONSOLIDATED_MORPHOLOGY@
ITK_USE_TEMPLATE_META_PROGRAMMING_LOOP_UNROLLING:BOOL=@ITK_USE_TEMPLATE_META_PROGRAMMING_LOOP_UNROLLING@
ITK_USE_TRANSFORM_IO_FACTORIES:BOOL=@ITK_USE_TRANSFORM_IO_FACTORIES@
ITK_IMAGE_BEHAVES_AS_ORIENTED_IMAGE:BOOL=@ITK_IMAGE_BEHAVES_AS_ORIENTED_IMAGE@

ITK_USE_SYSTEM_GDCM:BOOL=@ITK_USE_SYSTEM_GDCM@
ITK_USE_SYSTEM_LIBXML2:BOOL=@ITK_USE_SYSTEM_LIBXML2@
ITK_USE_SYSTEM_PNG:BOOL=@ITK_USE_SYSTEM_PNG@
ITK_USE_SYSTEM_TIFF:BOOL=@ITK_USE_SYSTEM_TIFF@
ITK_USE_SYSTEM_VXL:BOOL=@ITK_USE_SYSTEM_VXL@
ITK_USE_SYSTEM_ZLIB:BOOL=@ITK_USE_SYSTEM_ZLIB@

ITK_LEGACY_REMOVE:BOOL=@ITK_LEGACY_REMOVE@
ITK_LEGACY_SILENT:BOOL=@ITK_LEGACY_SILENT@
GDCM_LEGACY_REMOVE:BOOL=@GDCM_LEGACY_REMOVE@
GDCM_LEGACY_SILENT:BOOL=@GDCM_LEGACY_SILENT@

ITK_USE_KWSTYLE:BOOL=@ITK_USE_KWSTYLE@
KWSTYLE_EXECUTABLE:PATH=@KWSTYLE_EXECUTABLE@
KWSTYLE_USE_VIM_FORMAT:BOOL=@KWSTYLE_USE_VIM_FORMAT@
KWSTYLE_USE_MSVC_FORMAT:BOOL=@KWSTYLE_USE_MSVC_FORMAT@

ITK_CSWIG_JAVA:BOOL=@ITK_CSWIG_JAVA@
ITK_CSWIG_PYTHON:BOOL=@ITK_CSWIG_PYTHON@
ITK_CSWIG_TCL:BOOL=@ITK_CSWIG_TCL@
ITK_USE_LIBXML2:BOOL=@ITK_USE_LIBXML2@
ITK_USE_MINC2:BOOL=@ITK_USE_MINC2@

USE_WRAP_ITK:BOOL=@USE_WRAP_ITK@
USE_FFTWD:BOOL=@USE_FFTWD@
USE_FFTWF:BOOL=@USE_FFTWF@
USE_SCSL:BOOL=@USE_SCSL@
")

# Set any extra envionment variables here
SET (CTEST_ENVIRONMENT
  )
