]> Creatis software - creaBruker.git/blobdiff - lib/src1/CMakeLists.txt
Added CMake configuration to enable CDash tests.
[creaBruker.git] / lib / src1 / CMakeLists.txt
index ad13ca330ad1d2f39af6cc7c1357005e8ef3f52c..a0fb5b4cc42db17502903680673758b3e8826c5f 100644 (file)
@@ -1,3 +1,28 @@
+# ---------------------------------------------------------------------
+#
+# 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.
+# ------------------------------------------------------------------------
+
 #----------------------------------------------------------------------------
 # SET THE NAME OF YOUR LIBRARY
 SET ( LIBRARY_NAME   creaBruker  )
@@ -39,7 +64,17 @@ IF ( BUILD_${LIBRARY_NAME} )
   #
   #    )
   #----------------------------------------------------------------------------
-
+  #TO SWITCH BETWEEN GDCM AND GDCM2
+  message ("avant... ${creaBruker_SOURCES}")
+if(USE_GDCM2)
+       LIST(REMOVE_ITEM ${LIBRARY_NAME}_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/bruker2dicom.cxx")
+       LIST(REMOVE_ITEM ${LIBRARY_NAME}_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/ bruker2dicom.h")
+endif()
+if(USE_GDCM)
+       LIST(REMOVE_ITEM ${LIBRARY_NAME}_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/bruker2dicom2.cxx")
+       LIST(REMOVE_ITEM ${LIBRARY_NAME}_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/ bruker2dicom2.h")
+endif()
+  message ("apres... ${creaBruker_SOURCES}")
   #----------------------------------------------------------------------------
   # LIBRARY DEPENDENCIES (LIBRARIES TO LINK WITH)
   SET ( ${LIBRARY_NAME}_LINK_LIBRARIES
@@ -48,7 +83,7 @@ IF ( BUILD_${LIBRARY_NAME} )
     #    ${VTK_LIBRARIES}
     #    ${ITK_LIBRARIES}
       ${GDCM_LIBRARIES}
-      ${BOOST_LIBRARIES}
#EED31jan2013     ${BOOST_LIBRARIES}
     )
   #----------------------------------------------------------------------------
 
@@ -66,13 +101,48 @@ IF ( BUILD_${LIBRARY_NAME} )
     lib/src1/
        lib/src1/../../../
 )
+  OPTION( BUILD_DOXYGEN_DOC "Build doxygen doc ?" OFF)
+IF(BUILD_DOXYGEN_DOC)
+  ADD_SUBDIRECTORY(doxygen)
+ENDIF(BUILD_DOXYGEN_DOC)
   
-  
+
+
+
+
+
+##  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} )
+##
+## IF(UNIX)
+##    SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_LIBRARY_PATHS 
+##      ${CILFC_EXECUTABLE_OUTPUT_REL_PATH})
+##    SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_LIBRARY_PATHS lib)
+##  ELSE(UNIX)
+##    SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_LIBRARY_PATHS 
+##      ${CILFC_EXECUTABLE_OUTPUT_REL_PATH})
+##    SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_LIBRARY_PATHS bin)
+##  ENDIF(UNIX)
+##  SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_INCLUDE_PATHS include/${LIBRARY_NAME}) 
+##  
+##  #EED ????  set(CILFC_EXECUTABLE_OUTPUT_REL_PATH ".")
+
   #----------------------------------------------------------------------------
   # MACRO WHICH DOES ALL THE JOB : BUILD AND INSTALL
   CREA_ADD_LIBRARY( ${LIBRARY_NAME} )
+  # Invoke the advanced macro
+##EED  CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE(${LIBRARY_NAME})
   #----------------------------------------------------------------------------
 
 
+
+
+
+
   #---------------------------------------------------------------------------
 ENDIF ( BUILD_${LIBRARY_NAME} )