]> Creatis software - bbtk.git/blob - kernel/cmake/BBTKConfigurePackagePaths.cmake
27352efe28581632688a5951796e147367e980d7
[bbtk.git] / kernel / cmake / BBTKConfigurePackagePaths.cmake
1  # ---------------------------------------------------------------------
2  #
3  # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
4  #                        pour la SantÈ)
5  # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6  # Previous Authors : Laurent Guigues, Jean-Pierre Roux
7  # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
8  #
9  #  This software is governed by the CeCILL-B license under French law and
10  #  abiding by the rules of distribution of free software. You can  use,
11  #  modify and/ or redistribute the software under the terms of the CeCILL-B
12  #  license as circulated by CEA, CNRS and INRIA at the following URL
13  #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
14  #  or in the file LICENSE.txt.
15  #
16  #  As a counterpart to the access to the source code and  rights to copy,
17  #  modify and redistribute granted by the license, users are provided only
18  #  with a limited warranty  and the software's author,  the holder of the
19  #  economic rights,  and the successive licensors  have only  limited
20  #  liability.
21  #
22  #  The fact that you are presently reading this means that you have had
23  #  knowledge of the CeCILL-B license and that you accept its terms.
24  # ------------------------------------------------------------------------ */
25
26
27
28
29 SET(BBTK_PACKAGE_LIB_PATH ${CMAKE_CREA_LIB_PATH} )
30
31 IF(WIN32)
32   SET (EXECUTABLE_OUTPUT_REL_PATH "") 
33   SET (LIBRARY_OUTPUT_REL_PATH    "")
34 #  FILE(TO_NATIVE_PATH  ${PROJECT_BINARY_DIR}/$(OutDir)  BBTK_BIN_PATH)
35 #  SET(BBTK_BIN_PATH ${BBTK_DIR}/bin})
36 #  FIND_FILE(PATHS ${BBTK_BIN_PATH})
37
38   FIND_PATH(BBTK_BIN_PATH bbi.exe ${BBTK_DIR}/bin ${BBTK_DIR}/Release ${BBTK_DIR}/RelWithDebInfo ${BBTK_DIR}/Debug NO_DEFAULT_PATH)
39
40   IF(NOT BBTK_BIN_PATH)
41     MESSAGE(FATAL_ERROR "bbi not found in ${BBTK_DIR}/bin ; ${BBTK_DIR}/Release ; ${BBTK_DIR}/Debug ; ${BBTK_DIR}/RelWithDebInfo : is bbtk properly built ?")
42   ENDIF(NOT BBTK_BIN_PATH)
43
44 ##  SET (ADDITIONAL_DLL_PATH "C:/Program Files/CreaTools/crea_ThirdParty_dlls-0.2.0/bin" CACHE PATH "Additional paths in which to look for dlls")
45
46   SET(BBTK_BBI "${BBTK_BIN_PATH}/bbi")
47   SET(BBTK_BBS2CPP "${BBTK_BIN_PATH}/bbs2cpp")
48   SET(BBTK_BBC "${BBTK_BIN_PATH}/bbc")
49   SET(BBTK_BBFY "${BBTK_BIN_PATH}/bbfy")
50   SET(BBTK_BBDOC "${BBTK_BIN_PATH}/bbdoc")
51   
52 ELSE(WIN32)
53 #  SET (EXECUTABLE_OUTPUT_REL_PATH bin) 
54 #  SET (LIBRARY_OUTPUT_REL_PATH    bin)
55   SET(BBTK_BIN_PATH ${BBTK_INSTALL_PREFIX}/bin)
56   SET(BBTK_BBI "${BBTK_BIN_PATH}/bbi")
57   SET(BBTK_BBS2CPP "${BBTK_BIN_PATH}/bbs2cpp")
58   SET(BBTK_BBC "${BBTK_BIN_PATH}/bbc")
59   SET(BBTK_BBFY "${BBTK_BIN_PATH}/bbfy")
60   SET(BBTK_BBDOC "${BBTK_BIN_PATH}/bbdoc")  
61 ENDIF(WIN32)
62
63
64 INCLUDE(${BBTK_CMAKE_DIR}/BBTKSetDeducedPaths.cmake)
65