2 # ---------------------------------------------------------------------
4 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
6 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
7 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
8 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
10 # This software is governed by the CeCILL-B license under French law and
11 # abiding by the rules of distribution of free software. You can use,
12 # modify and/ or redistribute the software under the terms of the CeCILL-B
13 # license as circulated by CEA, CNRS and INRIA at the following URL
14 # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
15 # or in the file LICENSE.txt.
17 # As a counterpart to the access to the source code and rights to copy,
18 # modify and redistribute granted by the license, users are provided only
19 # with a limited warranty and the software's author, the holder of the
20 # economic rights, and the successive licensors have only limited
23 # The fact that you are presently reading this means that you have had
24 # knowledge of the CeCILL-B license and that you accept its terms.
25 # ------------------------------------------------------------------------
27 # ---------------------------------
29 # Unless you are an experimented cmake user,
31 # http://www.creatis.insa-lyon.fr/site/fr/CreatoosGettingStarted-v2.0.X
34 # Generated with creaNewProject, version of : 18/03/2010
35 # ---------------------------------
37 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
39 #MARK_AS_ADVANCED( FORCE CMAKE_BACKWARDS_COMPATIBILITY )
41 # for CMake 2.6 corrected behaviour (see "cmake --help-policy CMP0003")
42 IF(COMMAND cmake_policy AND ${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4)
43 CMAKE_POLICY(SET CMP0003 NEW)
44 CMAKE_POLICY(SET CMP0005 NEW)
45 CMAKE_POLICY(SET CMP0011 NEW)
46 ENDIF(COMMAND cmake_policy AND ${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4)
49 ###################################
51 ###################################
53 #==================================
55 SET(PROJECT_MAJOR_VERSION 1)
56 SET(PROJECT_MINOR_VERSION 0)
57 SET(PROJECT_BUILD_VERSION 0)
59 SET(PROJECT_VERSION "${PROJECT_MAJOR_VERSION}.${PROJECT_MINOR_VERSION}.${PROJECT_BUILD_VERSION}")
60 SET(PROJECT_VERSION_DATE "11/02/2010")
61 #ADD_DEFINITIONS( -DPROJECT_VERSION=${PROJECT_VERSION} )
62 #ADD_DEFINITIONS( -DPROJECT_VERSION_DATE=${PROJECT_VERSION_DATE} )
67 set (CMAKE_MODULE_PATH ${CMAKE_INSTALL_PREFIX}/share/cmake/Module)
69 #==================================
70 SET(CREA_VERBOSE_CMAKE TRUE)
71 #==================================
72 # Find crea (mandatory, to use macros)
73 FIND_PACKAGE(crea REQUIRED)
75 INCLUDE(${crea_USE_FILE})
77 #==================================
79 # USER! : Add here as many 'FIND_PACKAGE' blocks as *your* aplication requires
82 # WARNING : we are talking here about 'bbtk packages', not about libraries!
83 # if your project just requires the GDCM library, and not bbtk/packages/gdcm,
84 # do not add FIND_PACKAGE(gdcm REQUIRED).
85 # Just set USE_GDCM to ON, after " Libraries/tools used
88 #==================================
89 # Do not allow to build inside the source tree
90 CREA_PREVENT_IN_SOURCE_BUILD()
91 #==================================
93 #==================================
94 # Libraries/tools used
96 # USER! : Note : Set USE_CREA to ON
99 # if you need to LINK against crea
100 # (and not only use its macros)
104 SET(USE_GDCM_VTK OFF)
106 SET(USE_WXWIDGETS OFF)
107 SET(USE_KWWIDGETS OFF)
112 #==================================
114 #==================================
116 #FIND_PACKAGE(xxx REQUIRED)
118 # INCLUDE(${xxx_USE_FILE})
121 #==================================
123 #==================================
124 # USER! : Note : Set USE_DOXYGEN to ON
125 # if you think you will ask, some day,
126 # for Doxygen generation
127 #EED SET(USE_DOXYGEN OFF)
129 # Note : Set USE_LATEX to ON, USE_TTH to ON
130 # if you think you will ask, some day,
131 # for doc generation using your own latex documents
132 #EED SET(USE_LATEX OFF)
133 #EED SET(USE_TTH OFF)
135 CREA_FIND_AND_USE_LIBRARIES()
136 #==================================
138 #==================================
139 # Where to put executables and libs
140 SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR})
141 SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR})
143 CMAKE_BACKWARDS_COMPATIBILITY
144 EXECUTABLE_OUTPUT_PATH
147 #==================================
150 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/win32)
151 LINK_DIRECTORIES(${PROJECT_SOURCE_DIR}/win32)
154 #==================================
156 #==================================
158 SET(LIBNAME $(creaVtk))
161 ${PROJECT_BINARY_DIR}
164 # USER! : Add here the directories holding the .h you need
166 # INCLUDE_DIRECTORIES(appli/_YOUR_OWN_APPLI_SOURCE_DIRECTORY_)
167 # INCLUDE_DIRECTORIES(lib/_YOUR_OWN_LIBRARY_SOURCE_DIRECTORY_)
169 #==================================
172 #----------------------------------------------------------------------------
173 INCLUDE(${PROJECT_SOURCE_DIR}/cmake/UserRootCMakeLists.cmake)
175 #==================================
176 # Where to generate documentation
178 SET(BBTK_DOC_BUILD_PATH
179 ${PROJECT_BINARY_DIR}/doc
181 #==================================
185 # ADD SUB DIRECTORIES
187 ADD_SUBDIRECTORY(lib)
188 ADD_SUBDIRECTORY(appli)
189 ADD_SUBDIRECTORY(doc)
190 ADD_SUBDIRECTORY(data)
191 ADD_SUBDIRECTORY(install)
192 #==================================
194 #-----------------------------------
195 # This one is just a sample.
196 # USER : you may comment out this line
199 #ADD_SUBDIRECTORY(bbtk_mySamplePackage_PKG)
201 #==================================
202 # This one is the default empty package,
203 # created with the same name than the Project.
204 # USER : you may use it
206 ADD_SUBDIRECTORY(bbtk_creaVtk_PKG)
207 #ADD_SUBDIRECTORY(bbtk_creaVtkHeartAngles_PKG)