###################################################################################################
#####                                                                                         #####
##### Default value definitions for CMake build options.                                      #####
#####                                                                                         #####
###################################################################################################

OPTION(BUILD_ZLIB                   "Include zlib in the build. You may disable this option if you provide zlib on your own."    ON)
OPTION(WITH_TAPKEE                  "Build advanced dimensionality reductors based on tapkee."                                   ON)

OPTION(BUILD_APP_SANDBOX            "Builds the sandbox app."                                                                    OFF)
OPTION(BUILD_APP_FILTERMR8          "Builds MR8 filter bank app."                                                                ON)
OPTION(BUILD_APP_KMEANS             "Builds k-means clustering app."                                                             ON)
OPTION(BUILD_APP_DISTANCE_MATRIX    "Builds app that computes pairwise distances."                                               ON)
OPTION(BUILD_APP_PROGRESSION_MAP    "Builds scalar progression map generation app."                                              ON)
OPTION(BUILD_APP_GUIDANCE_REFINE    "Builds app for target guidance refinement."                                                 ON)
OPTION(BUILD_APP_APPEARANCE_SPACE   "Builds app that transforms exemplars into appearance space."                                ON)
OPTION(BUILD_APP_SYNTHESIZE         "Builds synthesizer app."                                                                    ON)
OPTION(BUILD_APP_UV_MAP             "Builds app that remaps an input based on an user-provided UV map."                          ON)

IF("${OpenCV_DIR}" STREQUAL "")
  SET(OpenCV_DIR "${CMAKE_MODULE_PATH}/opencv")
ENDIF("${OpenCV_DIR}" STREQUAL "")

IF("${OPENEXR_LOCATION}" STREQUAL "")
  SET(OPENEXR_LOCATION "${CMAKE_MODULE_PATH}")
ENDIF("${OPENEXR_LOCATION}" STREQUAL "")

IF("${TBB_DIR}" STREQUAL "")
  SET(TBB_DIR "${CMAKE_MODULE_PATH}")
ENDIF("${TBB_DIR}" STREQUAL "")

IF("${HDF5_ROOT}" STREQUAL "")
  SET(HDF5_ROOT "${CMAKE_MODULE_PATH}")
ENDIF("${HDF5_ROOT}" STREQUAL "")

IF("${ZLIB_ROOT}" STREQUAL "")
  SET(ZLIB_ROOT "${CMAKE_MODULE_PATH}/zlib")
ENDIF("${ZLIB_ROOT}" STREQUAL "")

IF("${EIGEN3_ROOT}" STREQUAL "")
  SET(EIGEN3_ROOT "${CMAKE_MODULE_PATH}")
ENDIF("${EIGEN3_ROOT}" STREQUAL "")

IF("${TAPKEE_DIR}" STREQUAL "")
  SET(TAPKEE_DIR "${CMAKE_MODULE_PATH}")
ENDIF("${TAPKEE_DIR}" STREQUAL "")