]> Creatis software - bbtk.git/blobdiff - kernel/install/CMakeLists.txt
Feature #1774
[bbtk.git] / kernel / install / CMakeLists.txt
index 4e869e380f115473f35f10c73c231749f294dbdc..81b23b9412bcbe560f7abae0aece84f44defe3f9 100644 (file)
@@ -1,86 +1,68 @@
+ # ---------------------------------------------------------------------
+ #
+ # 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.
+ # ------------------------------------------------------------------------ */
+
+
 IF(UNIX)
-  SUBDIRS(linux)
-  SUBDIRS(gnome)
+  ADD_SUBDIRECTORY(linux)
+  ADD_SUBDIRECTORY(gnome)
 ENDIF(UNIX)
 
+ADD_SUBDIRECTORY(cpack)
 
-# Aditional INSTALL for CPACK mecanism.
 
-IF(WIN32)
-  STRING(REGEX REPLACE "\\\\" "/" WINDIR "$ENV{WINDIR}")
-  INSTALL(   FILES ${WINDIR}/system32/msvcp71d.dll                             DESTINATION bin/ )
-  INSTALL(   FILES ${WINDIR}/system32/msvcr71d.dll                             DESTINATION bin/ )
 
-  IF(USE_VTK)
-    IF(${VTK_DIR})
-    # ????????? Why this line doesn't works ...?????
-      FILE(GLOB_RECURSE LST_FILE_VTKDLL RELATIVE ${VTK_DIR} *.dll )
-      FOREACH( iLST  ${LST_FILE_VTKDLL} )
-        message("EED kernel/install/CMakeLists.txt " ${iLST} )
-        INSTALL( 
-          FILES ${iLST}
-          DESTINATION bin/
-        )
-      ENDFOREACH(iLST)
-    ENDIF(${VTK_DIR})
+# Install documentation directoris
+#-------------------------------------------------------------------
+#INSTALL(
+#  DIRECTORY  ${BBTK_BINARY_DIR}/${BBTK_DOC_REL_PATH}
+#  DESTINATION  ${BBTK_SHARE_REL_PATH}
+#  FILES_MATCHING PATTERN "*.html"
+#)
 
-    INSTALL(   FILES ${VTK_DIR}/../../bin/vtkCommon.dll                                DESTINATION bin/ )
-    INSTALL(   FILES ${VTK_DIR}/../../bin/vtkDICOMParser.dll                           DESTINATION bin/ )
-    INSTALL(   FILES ${VTK_DIR}/../../bin/vtkexoIIc.dll                                DESTINATION bin/ )
-    INSTALL(   FILES ${VTK_DIR}/../../bin/vtkexpat.dll                                 DESTINATION bin/ )
-    INSTALL(   FILES ${VTK_DIR}/../../bin/vtkFiltering.dll                     DESTINATION bin/ )
-    INSTALL(   FILES ${VTK_DIR}/../../bin/vtkfreetype.dll                      DESTINATION bin/ )
-    INSTALL(   FILES ${VTK_DIR}/../../bin/vtkftgl.dll                                  DESTINATION bin/ )
-    INSTALL(   FILES ${VTK_DIR}/../../bin/vtkGenericFiltering.dll              DESTINATION bin/ )
-    INSTALL(   FILES ${VTK_DIR}/../../bin/vtkGraphics.dll                      DESTINATION bin/ )
-    INSTALL(   FILES ${VTK_DIR}/../../bin/vtkHybrid.dll                                DESTINATION bin/ )
-    INSTALL(   FILES ${VTK_DIR}/../../bin/vtkImaging.dll                               DESTINATION bin/ )
-    INSTALL(   FILES ${VTK_DIR}/../../bin/vtkIO.dll                                    DESTINATION bin/ )
-    INSTALL(   FILES ${VTK_DIR}/../../bin/vtkjpeg.dll                                  DESTINATION bin/ )
-    INSTALL(   FILES ${VTK_DIR}/../../bin/vtkNetCDF.dll                                DESTINATION bin/ )
-    INSTALL(   FILES ${VTK_DIR}/../../bin/vtkpng.dll                                           DESTINATION bin/ )
-    INSTALL(   FILES ${VTK_DIR}/../../bin/vtkRendering.dll                     DESTINATION bin/ )
-    INSTALL(   FILES ${VTK_DIR}/../../bin/vtksys.dll                                           DESTINATION bin/ )
-    INSTALL(   FILES ${VTK_DIR}/../../bin/vtktiff.dll                                  DESTINATION bin/ )
-    INSTALL(   FILES ${VTK_DIR}/../../bin/vtkVolumeRendering.dll               DESTINATION bin/ )
-    INSTALL(   FILES ${VTK_DIR}/../../bin/vtkWidgets.dll                               DESTINATION bin/ )
-    INSTALL(   FILES ${VTK_DIR}/../../bin/vtkzlib.dll                                  DESTINATION bin/ )
-  ENDIF(USE_VTK)
-  
-  IF(USE_ITK)
-    INSTALL(   FILES ${ITK_DIR}/../../bin/ITKCommon.dll        DESTINATION bin/ )
-  ENDIF(USE_ITK)
+#INSTALL(
+#  DIRECTORY  ${BBTK_BINARY_DIR}/${BBTK_DOC_REL_PATH}
+#  DESTINATION  ${BBTK_SHARE_REL_PATH}
+#  FILES_MATCHING PATTERN "*.jpg"
+#)
 
-  IF(USE_WXWIDGETS)
-    INSTALL(   FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_xrc_vc_custom.dll                       DESTINATION bin/ )
-    INSTALL(   FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_richtext_vc_custom.dll          DESTINATION bin/ )
-    INSTALL(   FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_qa_vc_custom.dll                                DESTINATION bin/ )
-    INSTALL(   FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_media_vc_custom.dll             DESTINATION bin/ )
-    INSTALL(   FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_html_vc_custom.dll              DESTINATION bin/ )
-    INSTALL(   FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_gl_vc_custom.dll                                DESTINATION bin/ )
-    INSTALL(   FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_core_vc_custom.dll              DESTINATION bin/ )
-    INSTALL(   FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_aui_vc_custom.dll                       DESTINATION bin/ )
-    INSTALL(   FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_adv_vc_custom.dll                       DESTINATION bin/ )
-    INSTALL(   FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_xml_vc_custom.dll              DESTINATION bin/ )
-    INSTALL(   FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_vc_custom.dll                          DESTINATION bin/ )
-    INSTALL(   FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_odbc_vc_custom.dll             DESTINATION bin/ )
-    INSTALL(   FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_net_vc_custom.dll                      DESTINATION bin/ )
-  ENDIF(USE_WXWIDGETS)
+#INSTALL(
+#  DIRECTORY  ${BBTK_BINARY_DIR}/${BBTK_DOC_REL_PATH}
+#  DESTINATION  ${BBTK_SHARE_REL_PATH}
+#  FILES_MATCHING PATTERN "*.pdf"
+#)
+#-------------------------------------------------------------------
 
-ENDIF(WIN32)
 
-INSTALL(
-  DIRECTORY  ${BBTK_BINARY_DIR}/${BBTK_DOC_REL_PATH}
-  DESTINATION  ${BBTK_SHARE_REL_PATH}
-)
 
 INSTALL(
-  DIRECTORY  ${BBTK_BINARY_DIR}/${BBTK_BBS_REL_PATH}
+  DIRECTORY  ${bbtk_BINARY_DIR}/${BBTK_BBS_REL_PATH}
   DESTINATION  ${BBTK_SHARE_REL_PATH}
 )
 
 INSTALL(
-  DIRECTORY  ${BBTK_BINARY_DIR}/${BBTK_DATA_REL_PATH}
+  DIRECTORY  ${bbtk_BINARY_DIR}/${BBTK_DATA_REL_PATH}
   DESTINATION  ${BBTK_SHARE_REL_PATH}
 )