#
# This is a recommended file for Slicer3 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
# @Slicer3_SOURCE_DIR@/CMake/Slicer3SampleBuildTest.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 "@Slicer3_SOURCE_DIR@")
SET(CTEST_BINARY_DIRECTORY "@Slicer3_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@

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@

Slicer3_BUILD_CLI:BOOL=@Slicer3_BUILD_CLI@
Slicer3_BUILD_MODULES:BOOL=@Slicer3_BUILD_MODULES@
Slicer3_BUILD_QTLOADABLEMODULES:BOOL=@Slicer3_BUILD_QTLOADABLEMODULES@
Slicer3_BUILD_WIN32_CONSOLE:BOOL=@Slicer3_BUILD_WIN32_CONSOLE@
Slicer3_USE_BatchMake:BOOL=@Slicer3_USE_BatchMake@
Slicer3_USE_IGSTK:BOOL=@Slicer3_USE_IGSTK@
Slicer3_USE_MIDAS:BOOL=@Slicer3_USE_MIDAS@
Slicer3_USE_NAVITRACK:BOOL=@Slicer3_USE_NAVITRACK@
Slicer3_USE_PYTHON:BOOL=@Slicer3_USE_PYTHON@

Teem_DIR:PATH=@Teem_DIR@
SLICERLIBCURL_DIR:PATH=@SLICERLIBCURL_DIR@
ITK_DIR:PATH=@ITK_DIR@
KWWidgets_DIR:PATH=@KWWidgets_DIR@

")

# Set any extra envionment variables here
SET (CTEST_ENVIRONMENT
 "DISPLAY=:0"
)
