1 # ---------------------------------------------------------------------
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
7 # This software is governed by the CeCILL-B license under French law and
8 # abiding by the rules of distribution of free software. You can use,
9 # modify and/ or redistribute the software under the terms of the CeCILL-B
10 # license as circulated by CEA, CNRS and INRIA at the following URL
11 # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
12 # or in the file LICENSE.txt.
14 # As a counterpart to the access to the source code and rights to copy,
15 # modify and redistribute granted by the license, users are provided only
16 # with a limited warranty and the software's author, the holder of the
17 # economic rights, and the successive licensors have only limited
20 # The fact that you are presently reading this means that you have had
21 # knowledge of the CeCILL-B license and that you accept its terms.
22 # ------------------------------------------------------------------------ */
24 # ---------------------------------
26 # Unless you are an experimented cmake user,
28 # http://www.creatis.insa-lyon.fr/site/fr/CreatoosGettingStarted-v2.0.X
31 # ---------------------------------
33 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
34 ###################################
35 PROJECT( bbtkGEditor )
36 ###################################
38 #==================================
40 SET(PROJECT_MAJOR_VERSION 1)
41 SET(PROJECT_MINOR_VERSION 2)
42 SET(PROJECT_BUILD_VERSION 0)
44 SET(PROJECT_VERSION "${PROJECT_MAJOR_VERSION}.${PROJECT_MINOR_VERSION}.${PROJECT_BUILD_VERSION}")
45 SET(PROJECT_VERSION_DATE "30/09/2009")
46 #ADD_DEFINITIONS( -DPROJECT_VERSION=${PROJECT_VERSION} )
47 #ADD_DEFINITIONS( -DPROJECT_VERSION_DATE=${PROJECT_VERSION_DATE} )
49 #==================================
52 set (CMAKE_MODULE_PATH ${CMAKE_INSTALL_PREFIX}/share/cmake/Module)
54 #==================================
55 # Find crea (mandatory, to use macros)
56 SET(CREA_VERBOSE_CMAKE TRUE)
57 FIND_PACKAGE(crea REQUIRED)
59 INCLUDE(${crea_USE_FILE})
61 #==================================
64 #==================================
65 # Do not allow to build inside the source tree
66 CREA_PREVENT_IN_SOURCE_BUILD()
67 #==================================
69 #==================================
70 # Libraries/tools used
72 # Note : Set USE_CREA to ON
73 # if you need to LINK against crea
74 # (and not only use its macros)
81 SET(USE_KWWIDGETS OFF)
86 # Note : Set USE_DOXYGEN to ON
87 # if you think you will ask, some day,
88 # for Doxygen generation
89 #EED SET(USE_DOXYGEN OFF)
91 # Note : Set USE_LATEX to ON, USE_TTH to ON
92 # if you think you will ask, some day,
93 # for doc generation using your own latex documents
94 #EED SET(USE_LATEX OFF)
97 CREA_FIND_AND_USE_LIBRARIES()
98 #==================================
101 #==================================
102 FIND_PACKAGE(creaMaracasVisu REQUIRED)
103 IF (creaMaracasVisu_FOUND)
104 INCLUDE(${creaMaracasVisu_USE_FILE})
105 ENDIF(creaMaracasVisu_FOUND)
106 #==================================
108 #==================================
109 # Find and use the Black Box Toolkit
111 FIND_PACKAGE(BBTK REQUIRED)
112 MARK_AS_ADVANCED(BBTK_DIR)
115 INCLUDE(${BBTK_USE_FILE})
117 #==================================
120 #==================================
121 # Where to put executables and libs
122 SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR})
123 SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR})
125 CMAKE_BACKWARDS_COMPATIBILITY
126 EXECUTABLE_OUTPUT_PATH
130 #==================================
132 SET(LIBNAME $(bbtkGEditor))
134 ${PROJECT_BINARY_DIR}
136 # USER! : Add here the directories holding the .h you need
138 # ${PROJECT_SOURCE_DIR}/lib/_YOUR_OWN_LIBRARY_SOURCE_DIRECTORY_
141 #==================================
144 #----------------------------------------------------------------------------
145 INCLUDE(${PROJECT_SOURCE_DIR}/cmake/UserRootCMakeLists.cmake)
147 #==================================
148 # Where to generate documentation
149 # (desperate try; JPR)
151 SET(BBTK_DOC_BUILD_PATH
152 ${PROJECT_BINARY_DIR}/doc
154 #==================================
157 ADD_SUBDIRECTORY(lib)
158 ADD_SUBDIRECTORY(appli)
159 ADD_SUBDIRECTORY(doc)
160 ADD_SUBDIRECTORY(data)
161 ADD_SUBDIRECTORY(install)
162 #==================================