1 # ---------------------------------
3 # Unless you are an experimented cmake user,
5 # http://www.creatis.insa-lyon.fr/site/fr/CreatoosGettingStarted-v2.0.X
8 # Generated with creaNewProject, version of : 18/03/2010
9 # ---------------------------------
11 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
13 #MARK_AS_ADVANCED( FORCE CMAKE_BACKWARDS_COMPATIBILITY )
15 # for CMake 2.6 corrected behaviour (see "cmake --help-policy CMP0003")
16 IF(COMMAND cmake_policy AND ${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4)
17 CMAKE_POLICY(SET CMP0003 NEW)
18 CMAKE_POLICY(SET CMP0005 NEW)
19 CMAKE_POLICY(SET CMP0011 NEW)
20 ENDIF(COMMAND cmake_policy AND ${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4)
23 ###################################
24 PROJECT( creaMiniTools )
25 ###################################
27 #==================================
29 SET(PROJECT_MAJOR_VERSION 1)
30 SET(PROJECT_MINOR_VERSION 0)
31 SET(PROJECT_BUILD_VERSION 0)
33 SET(PROJECT_VERSION "${PROJECT_MAJOR_VERSION}.${PROJECT_MINOR_VERSION}.${PROJECT_BUILD_VERSION}")
34 SET(PROJECT_VERSION_DATE "11/02/2010")
35 #ADD_DEFINITIONS( -DPROJECT_VERSION=${PROJECT_VERSION} )
36 #ADD_DEFINITIONS( -DPROJECT_VERSION_DATE=${PROJECT_VERSION_DATE} )
38 #==================================
39 SET(CREA_VERBOSE_CMAKE TRUE)
40 #==================================
41 # Find crea (mandatory, to use macros)
42 FIND_PACKAGE(crea REQUIRED)
44 INCLUDE(${crea_USE_FILE})
46 #==================================
48 # USER! : Add here as many 'FIND_PACKAGE' blocks as *your* aplication requires
49 #FIND_PACKAGE(xxx REQUIRED)
51 # INCLUDE(${xxx_USE_FILE})
54 #==================================
55 # Do not allow to build inside the source tree
56 CREA_PREVENT_IN_SOURCE_BUILD()
57 #==================================
59 #==================================
60 # Libraries/tools used
62 # USER! : Note : Set USE_CREA to ON
63 # if you need to LINK against crea
64 # (and not only use its macros)
70 SET(USE_WXWIDGETS OFF)
71 SET(USE_KWWIDGETS OFF)
76 # USER! : Note : Set USE_DOXYGEN to ON
77 # if you think you will ask, some day,
78 # for Doxygen generation
79 #EED SET(USE_DOXYGEN OFF)
81 # Note : Set USE_LATEX to ON, USE_TTH to ON
82 # if you think you will ask, some day,
83 # for doc generation using your own latex documents
84 #EED SET(USE_LATEX OFF)
87 CREA_FIND_AND_USE_LIBRARIES()
88 #==================================
90 #==================================
91 # Where to put executables and libs
92 SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR})
93 SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR})
95 CMAKE_BACKWARDS_COMPATIBILITY
96 EXECUTABLE_OUTPUT_PATH
99 #==================================
102 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/win32)
103 LINK_DIRECTORIES(${PROJECT_SOURCE_DIR}/win32)
106 #==================================
108 #==================================
110 SET(LIBNAME $(creaMiniTools))
113 ${PROJECT_BINARY_DIR}
116 # USER! : Add here the directories holding the .h you need
117 # INCLUDE_DIRECTORIES(appli/_YOUR_OWN_APPLI_SOURCE_DIRECTORY_)
118 # INCLUDE_DIRECTORIES(lib/_YOUR_OWN_LIBRARY_SOURCE_DIRECTORY_)
120 #==================================
123 #----------------------------------------------------------------------------
124 INCLUDE(${PROJECT_SOURCE_DIR}/cmake/UserRootCMakeLists.cmake)
126 #==================================
127 # Where to generate documentation
128 # (desperate try; JPR)
130 SET(BBTK_DOC_BUILD_PATH
131 ${PROJECT_BINARY_DIR}/doc
133 #==================================
136 ADD_SUBDIRECTORY(lib)
137 ADD_SUBDIRECTORY(appli)
138 ADD_SUBDIRECTORY(doc)
139 ADD_SUBDIRECTORY(data)
140 ADD_SUBDIRECTORY(install)
142 ADD_SUBDIRECTORY(bbtk_package_creaMiniTools)
143 ADD_SUBDIRECTORY(bbtk_package_creaMiniToolsBase)
146 #==================================