1 # ---------------------------------
3 # Unless you are an experimented cmake user,
5 # http://www.creatis.insa-lyon.fr/creatools/GettingStarted_creaTools
8 # ---------------------------------
10 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
11 ###################################
12 PROJECT( bbtkGEditor )
13 ###################################
15 #==================================
17 SET(PROJECT_MAJOR_VERSION 1)
18 SET(PROJECT_MINOR_VERSION 0)
19 SET(PROJECT_BUILD_VERSION 0)
21 SET(PROJECT_VERSION "${PROJECT_MAJOR_VERSION}.${PROJECT_MINOR_VERSION}.${PROJECT_BUILD_VERSION}")
22 SET(PROJECT_VERSION_DATE "30/09/2009")
23 #ADD_DEFINITIONS( -DPROJECT_VERSION=${PROJECT_VERSION} )
24 #ADD_DEFINITIONS( -DPROJECT_VERSION_DATE=${PROJECT_VERSION_DATE} )
26 #==================================
28 #==================================
29 # Find crea (mandatory, to use macros)
30 SET(CREA_VERBOSE_CMAKE TRUE)
31 FIND_PACKAGE(crea REQUIRED)
33 INCLUDE(${crea_USE_FILE})
35 #==================================
37 #==================================
38 FIND_PACKAGE(creaMaracasVisu REQUIRED)
39 IF (creaMaracasVisu_FOUND)
40 INCLUDE(${creaMaracasVisu_USE_FILE})
41 ENDIF(creaMaracasVisu_FOUND)
42 #==================================
45 #==================================
46 # Find and use the Black Box Toolkit
48 FIND_PACKAGE(BBTK REQUIRED)
49 MARK_AS_ADVANCED(BBTK_DIR)
52 INCLUDE(${BBTK_USE_FILE})
54 #==================================
59 #==================================
60 # Do not allow to build inside the source tree
61 CREA_PREVENT_IN_SOURCE_BUILD()
62 #==================================
64 #==================================
65 # Libraries/tools used
67 # Note : Set USE_CREA to ON
68 # if you need to LINK against crea
69 # (and not only use its macros)
76 SET(USE_KWWIDGETS OFF)
81 # Note : Set USE_DOXYGEN to ON
82 # if you think you will ask, some day,
83 # for Doxygen generation
86 # Note : Set USE_LATEX to ON, USE_TTH to ON
87 # if you think you will ask, some day,
88 # for doc generation using your own latex documents
92 CREA_FIND_AND_USE_LIBRARIES()
93 #==================================
95 #==================================
96 # Where to put executables and libs
97 SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR})
98 SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR})
100 CMAKE_BACKWARDS_COMPATIBILITY
101 EXECUTABLE_OUTPUT_PATH
105 #==================================
107 SET(LIBNAME $(bbtkGEditor))
109 ${PROJECT_BINARY_DIR}
111 # // if the previous one is not enough : (JPRx)
112 # Add here the directories holding the .h you need
114 # ${PROJECT_SOURCE_DIR}/lib/_YOUR_OWN_LIBRARY_SOURCE_DIRECTORY_
117 #==================================
120 #----------------------------------------------------------------------------
121 INCLUDE(${PROJECT_SOURCE_DIR}/cmake/UserRootCMakeLists.cmake)
123 #==================================
124 # Where to generate documentation
125 # (desperate try; JPR)
127 SET(BBTK_DOC_BUILD_PATH
128 ${PROJECT_BINARY_DIR}/doc
130 #==================================
138 #==================================