# ---------------------------------------------------------------------
#
# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
#                        pour la Sant�)
# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
# Previous Authors : Laurent Guigues, Jean-Pierre Roux
# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
#
#  This software is governed by the CeCILL-B license under French law and
#  abiding by the rules of distribution of free software. You can  use,
#  modify and/ or redistribute the software under the terms of the CeCILL-B
#  license as circulated by CEA, CNRS and INRIA at the following URL
#  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
#  or in the file LICENSE.txt.
#
#  As a counterpart to the access to the source code and  rights to copy,
#  modify and redistribute granted by the license, users are provided only
#  with a limited warranty  and the software's author,  the holder of the
#  economic rights,  and the successive licensors  have only  limited
#  liability.
#
#  The fact that you are presently reading this means that you have had
#  knowledge of the CeCILL-B license and that you accept its terms.
# ------------------------------------------------------------------------ */




   # Sets the settings for macro CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE
  SET(LIBRARY_NAME creaContours)
  SET(LIBRARY_NAME_BASE ${LIBRARY_NAME} )

  SET(${LIBRARY_NAME}_INSTALL_FOLDER ${LIBRARY_NAME})
  
#EED 01Avril2009
#  SET(${LIBRARY_NAME}_LIBRARIES ${LIBRARY_NAME} )
  SET(${LIBRARY_NAME}_LIBRARIES Interface_ManagerContour_NDimensions_lib Interface_Icons_NDimensions_lib kernel_ManagerContour_NDimensions_lib )
    
#  FILE(RELATIVE_PATH 
#    ${LIBRARY_NAME}_BUILD_TREE_RELATIVE_INCLUDE_PATHS 
#    ${PROJECT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
#    )
	
SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_INCLUDE_PATHS
    lib/Interface_ManagerContour_NDimensions
    lib/Interface_Icons_NDimensions
    lib/kernel_ManagerContour_NDimensions
)
	
	
  IF ( ${PROJECT_BINARY_DIR} STREQUAL ${EXECUTABLE_OUTPUT_PATH} )
    SET(CILFC_EXECUTABLE_OUTPUT_REL_PATH ".")
  ELSE ( ${PROJECT_BINARY_DIR} STREQUAL ${EXECUTABLE_OUTPUT_PATH} )
    FILE(RELATIVE_PATH 
      CILFC_EXECUTABLE_OUTPUT_REL_PATH
      ${PROJECT_BINARY_DIR} ${EXECUTABLE_OUTPUT_PATH})
  ENDIF ( ${PROJECT_BINARY_DIR} STREQUAL ${EXECUTABLE_OUTPUT_PATH} )


  SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_LIBRARY_PATHS ${CMAKE_CREA_LIB_PATH} )

  IF(UNIX)
    ADD_DEFINITIONS(-fPIC)
    SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_LIBRARY_PATHS 
      ${CILFC_EXECUTABLE_OUTPUT_REL_PATH})
  ELSE(UNIX)
    SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_LIBRARY_PATHS 
      ${CILFC_EXECUTABLE_OUTPUT_REL_PATH})
  ENDIF(UNIX)
  SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_INCLUDE_PATHS include/${LIBRARY_NAME})
  
#  SET(${LIBRARY_NAME}_HAS_ADDITIONAL_CONFIG_FILE TRUE)
#SET(${LIBRARY_NAME}_ADDITIONAL_CONFIG_FILE 
#  ${PROJECT_SOURCE_DIR}/src/AdditionalcreaImageIOConfig.cmake.in)
#SET(${LIBRARY_NAME}_ADDITIONAL_USE_FILE 
#  ${PROJECT_SOURCE_DIR}/src/AdditionalUsecreaImageIO.cmake.in)

  # Invoke the advanced macro
  CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE(${LIBRARY_NAME})

ADD_SUBDIRECTORY(Interface_ManagerContour_NDimensions)
ADD_SUBDIRECTORY(Interface_Icons_NDimensions)
ADD_SUBDIRECTORY(kernel_ManagerContour_NDimensions)
ADD_SUBDIRECTORY(doxygen)
 
  
