##
##  Copyright 1997-2009 Torsten Rohlfing
##
##  Copyright 2004-2011 SRI International
##
##  This file is part of the Computational Morphometry Toolkit.
##
##  http://www.nitrc.org/projects/cmtk/
##
##  The Computational Morphometry Toolkit is free software: you can
##  redistribute it and/or modify it under the terms of the GNU General Public
##  License as published by the Free Software Foundation, either version 3 of
##  the License, or (at your option) any later version.
##
##  The Computational Morphometry Toolkit is distributed in the hope that it
##  will be useful, but WITHOUT ANY WARRANTY; without even the implied
##  warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
##  GNU General Public License for more details.
##
##  You should have received a copy of the GNU General Public License along
##  with the Computational Morphometry Toolkit.  If not, see
##  <http://www.gnu.org/licenses/>.
##
##  $Revision$
##
##  $LastChangedDate$
##
##  $LastChangedBy$
##

#-----------------------------------------------------------------------------
#
# CMTKConfig.cmake - CMTK CMake configuration file for external projects.
#
# This file is configured by CMTK and used by the UseCMTK.cmake module
# to load CMTK's settings for an external project.

# The CMTK install tree.
@CMTK_CONFIG_CODE@

# The include directories
SET(CMTK_INCLUDE_DIRS "@CMTK_INCLUDE_DIRS_CONFIG@")

# The library directories
SET(CMTK_LIBRARY_DIRS "@CMTK_LIBRARY_DIRS_CONFIG@")

# The binary directory
SET(CMTK_BINARY_DIR "@CMTK_BINARY_DIR_CONFIG@")

# The C and C++ flags added by CMTK to the cmake-configured flags.
SET(CMTK_REQUIRED_C_FLAGS "@CMTK_REQUIRED_C_FLAGS@")
SET(CMTK_REQUIRED_CXX_FLAGS "@CMTK_REQUIRED_CXX_FLAGS@")
SET(CMTK_REQUIRED_LINK_FLAGS "@CMTK_REQUIRED_LINK_FLAGS@")

# The CMTK version number
SET(CMTK_VERSION_MAJOR "@CMTK_VERSION_MAJOR@")
SET(CMTK_VERSION_MINOR "@CMTK_VERSION_MINOR@")
SET(CMTK_VERSION_PATCH "@CMTK_VERSION_PATCH@")

# The location of the UseCMTK.cmake file.
SET(CMTK_USE_FILE "@CMTK_CONFIG_PREFIX_CONFIG@/@CMTK_USE_FILE@")

# The build settings file.
SET(CMTK_BUILD_SETTINGS_FILE "@CMTK_CONFIG_PREFIX_CONFIG@/@CMTK_BUILD_SETTINGS_FILE@")

# The library dependencies file.
SET(CMTK_LIBRARY_DEPENDS_FILE "@CMTK_CONFIG_PREFIX_CONFIG@/@CMTK_LIBRARY_DEPENDS_FILE@")

# Whether CMTK was built with shared libraries.
SET(CMTK_BUILD_SHARED "@BUILD_SHARED_LIBS@")

# A list of all libraries for CMTK.  Those listed here should
# automatically pull in their dependencies.
SET(CMTK_LIBRARIES cmtkQt cmtkPipeline cmtkRegistration cmtkSegmentation cmtkIO cmtkBase cmtkSystem)

# The CMTK library dependencies.
IF(NOT CMTK_NO_LIBRARY_DEPENDS AND
    EXISTS "${CMTK_LIBRARY_DEPENDS_FILE}")
  INCLUDE("${CMTK_LIBRARY_DEPENDS_FILE}")
ENDIF(NOT CMTK_NO_LIBRARY_DEPENDS AND
  EXISTS "${CMTK_LIBRARY_DEPENDS_FILE}")
