X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=CMakeLists.txt;h=c317c3b5623e048336e60cf8b99448f18a18e7c3;hb=37ce00fd14679d7e7bf61cd5e7b5ba9919319387;hp=653ba844626279901dfeba6ae951d7d5e4c2acc2;hpb=983142b7ed7800d7c71935bd2d9a5013a4b5ec72;p=crea.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 653ba84..c317c3b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,29 @@ +# --------------------------------------------------------------------- +# +# 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. +# ------------------------------------------------------------------------ */ + + # --------------------------------- # # Unless you are an experimented cmake user, @@ -38,6 +64,10 @@ IF(CREA_BUILD_WX) SET(CREA_BUILT_WITH_WX ON) ENDIF(CREA_BUILD_WX) +# JPR 4 mars 2011 +set (CMAKE_MODULE_PATH ${CMAKE_INSTALL_PREFIX}/share/cmake/Module) + + CREA_FIND_AND_USE_LIBRARIES() SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}) SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}) @@ -45,14 +75,14 @@ SET(CREA_LIB_PATH ${CMAKE_CREA_LIB_PATH} ) MARK_AS_ADVANCED( CMAKE_BACKWARDS_COMPATIBILITY - EXECUTABLE_OUTPUT_PATH + EXECUTABLE_OUTPUT_PATH LIBRARY_OUTPUT_PATH ) SET (BOOST_FILESYSTEM_VERSION 2) #----------------------------------------------------------------------------- -# messages compilation options +# messages compilation options OPTION ( CREA_COMPILE_DEBUG_MESSAGES "Compile CREA debug messages ?" USE_DEBUG_LIB) OPTION ( CREA_COMPILE_ERROR_MESSAGES "Compile CREA error messages ?" ON) @@ -65,9 +95,15 @@ INCLUDE(${CREA_CMAKE_DIR}/CREAResolveOptions.cmake) INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src) INCLUDE_DIRECTORIES(${PROJECT_BINARY_DIR}/src) +#JCP UBUNTU +INCLUDE_DIRECTORIES(/usr/lib/x86_64-linux-gnu/glib-2.0/include/) +#JCP UBUNTU + + ADD_SUBDIRECTORY(cmake) ADD_SUBDIRECTORY(src) ADD_SUBDIRECTORY(appli) +ADD_SUBDIRECTORY(lib) #----------------------------------------------------------------------------- OPTION( BUILD_SAMPLES "Build samples ?" OFF) IF(BUILD_SAMPLES)