Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
38dfa79e5e82fd7a9622d51485127a60cfc08d2f
[simgrid.git] / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.8)
2 project(SimGrid-Java C)
3 set(UPDATE_TYPE svn)
4 set(CMAKE_C_FLAGS "" CACHE TYPE INTERNAL FORCE)
5 set(CMAKE_EXE_LINKER_FLAGS "" CACHE TYPE INTERNAL FORCE)
6 set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_HOME_DIRECTORY}/lib")
7 set(soversion 1)
8
9 set(SIMGRID_JAVA_VERSION_MAJOR "1")
10 set(SIMGRID_JAVA_VERSION_MINOR "2")
11 set(SIMGRID_JAVA_VERSION_PATCH "0")
12 set(DIST_NAME ${PROJECT_NAME}-${SIMGRID_JAVA_VERSION_MAJOR}.${SIMGRID_JAVA_VERSION_MINOR})
13
14 ########
15 ## GCC #
16 ########
17 exec_program("${CMAKE_C_COMPILER} --version" OUTPUT_VARIABLE "COMPILER_C_VERSION")
18 string(REGEX MATCH "[0-9].[0-9].[0-9]" COMPILER_C_VERSION "${COMPILER_C_VERSION}")
19 string(REGEX MATCH "^[0-9].[0-9]" COMPILER_C_VERSION_MAJOR_MINOR "${COMPILER_C_VERSION}")
20 string(REPLACE "${COMPILER_C_VERSION_MAJOR_MINOR}." "" COMPILER_C_VERSION_PATCH "${COMPILER_C_VERSION}")
21
22 ########
23 ## GIT #
24 ########
25 if(EXISTS ${CMAKE_HOME_DIRECTORY}/.git/ AND NOT WIN32)
26 exec_program("git remote | head -n 1" OUTPUT_VARIABLE remote RETURN_VALUE ret)
27 exec_program("git config --get remote.${remote}.url" OUTPUT_VARIABLE url RETURN_VALUE ret)
28
29 if(url)
30         exec_program("git --git-dir=${CMAKE_HOME_DIRECTORY}/.git log --oneline -1" OUTPUT_VARIABLE "GIT_VERSION")
31         message(STATUS "Git version: ${GIT_VERSION}")
32         exec_program("git --git-dir=${CMAKE_HOME_DIRECTORY}/.git log -n 1 --format=%ai ." OUTPUT_VARIABLE "GIT_DATE")
33         message(STATUS "Git date: ${GIT_DATE}")
34         string(REGEX REPLACE " .*" "" GIT_VERSION "${GIT_VERSION}")
35         STRING(REPLACE " +0000" "" GIT_DATE ${GIT_DATE})
36         STRING(REPLACE " " "~" GIT_DATE ${GIT_DATE})
37         STRING(REPLACE ":" "-" GIT_DATE ${GIT_DATE})
38 endif(url)
39 endif(EXISTS ${CMAKE_HOME_DIRECTORY}/.git/ AND NOT WIN32)
40
41 #########
42 # CDASH #
43 #########
44 SET(DROP_METHOD "http")
45 SET(DROP_SITE "cdash.inria.fr/CDash")
46 SET(DROP_LOCATION "/submit.php?project=simgrid")
47 SET(DROP_SITE_CDASH TRUE)
48 SET(TRIGGER_SITE "http://cdash.inria.fr/CDash/cgi-bin/Submit-Random-TestingResults.cgi")
49 SET(BUILDNAME "SimGrid-Java" CACHE TYPE INTERNAL FORCE)
50 set(osname ${CMAKE_SYSTEM_NAME})
51 set(cpu ${CMAKE_SYSTEM_PROCESSOR})
52 set(DISTRIB2 ${CMAKE_SYSTEM_VERSION})
53 SET(SITE "${osname}_${DISTRIB2}_${cpu}")
54 SET(CTEST_SITE "${osname}_${DISTRIB2}_${cpu}")
55 SET(CTEST_PROJECT_NAME "${PROJECT_NAME}")
56 SET(CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE "3000000")
57 SET(CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE "3000000")
58 set(PIPOL_IMAGE $ENV{PIPOL_IMAGE})
59 if(NOT ${PIPOL_IMAGE} MATCHES "\n")
60 set(SITE ${PIPOL_IMAGE})
61 endif(NOT ${PIPOL_IMAGE} MATCHES "\n")
62 message(STATUS "SITE        : ${SITE}")
63 message(STATUS "BUILDNAME   : ${BUILDNAME}")
64
65 ###############################
66 # Test the build dependencies #
67 ###############################
68 include(FindSimGrid.cmake)
69 include(FindJavaSG.cmake)
70
71 ###############################
72 # Declare our package content #
73 ###############################
74 set(JMSG_C_SRC
75         src/smx_context_java.h
76         src/smx_context_java.c
77         src/jxbt_utilities.c
78         src/jxbt_utilities.h
79         src/jmsg.c 
80         src/jmsg.h
81         src/jmsg_comm.c
82         src/jmsg_comm.h
83         src/jmsg_host.c
84         src/jmsg_host.h
85         src/jmsg_process.c
86         src/jmsg_process.h
87         src/jmsg_task.c
88         src/jmsg_task.h
89         src/jmsg_synchro.c
90         src/jmsg_synchro.h
91 )
92
93 set(JMSG_JAVA_SRC
94         org/simgrid/msg/Host.java
95         org/simgrid/msg/HostFailureException.java       
96         org/simgrid/msg/HostNotFoundException.java      
97         org/simgrid/msg/JniException.java
98         org/simgrid/msg/Msg.java
99         org/simgrid/msg/MsgException.java
100         org/simgrid/msg/NativeException.java
101         org/simgrid/msg/Process.java
102         org/simgrid/msg/ProcessKilledError.java
103         org/simgrid/msg/ProcessNotFoundException.java
104         org/simgrid/msg/Task.java
105         org/simgrid/msg/TaskCancelledException.java
106         org/simgrid/msg/TimeoutException.java
107         org/simgrid/msg/TransferFailureException.java   
108         org/simgrid/msg/Mutex.java
109         org/simgrid/msg/Comm.java
110 )
111
112 set(JAVA_EXAMPLES
113   examples/chord/Chord.java
114   examples/chord/Common.java
115   examples/chord/Node.java
116   examples/chord/ChordTask.java
117         examples/chord/FindSuccessorAnswerTask.java
118         examples/chord/FindSuccessorTask.java
119         examples/chord/GetPredecessorAnswerTask.java
120         examples/chord/NotifyTask.java
121         examples/mutualExclusion/centralized/MutexCentral.java
122         examples/mutualExclusion/centralized/GrantTask.java
123         examples/mutualExclusion/centralized/Coordinator.java
124         examples/mutualExclusion/centralized/ReleaseTask.java
125         examples/mutualExclusion/centralized/Node.java
126         examples/mutualExclusion/centralized/RequestTask.java
127         examples/basic/FinalizeTask.java
128         examples/basic/Forwarder.java
129         examples/basic/Master.java
130         examples/basic/BasicTest.java
131         examples/basic/Slave.java
132         examples/commTime/FinalizeTask.java
133         examples/commTime/Master.java
134         examples/commTime/Slave.java
135         examples/commTime/CommTimeTest.java
136         examples/pingPong/PingPongTask.java
137         examples/pingPong/Sender.java
138         examples/pingPong/Receiver.java
139         examples/pingPong/PingPongTest.java
140         examples/master_slave_bypass/Master.java
141         examples/master_slave_bypass/MsBypass.java
142         examples/master_slave_bypass/Slave.java
143         examples/master_slave_bypass/FinalizeTask.java
144         examples/master_slave_kill/Master.java
145         examples/master_slave_kill/MsKill.java
146         examples/master_slave_kill/Slave.java
147         examples/master_slave_kill/FinalizeTask.java
148         examples/async/AsyncTest.java
149         examples/async/FinalizeTask.java  
150         examples/async/Forwarder.java
151         examples/async/Master.java  
152         examples/async/Slave.java
153         examples/startKillTime/Slave.java
154         examples/startKillTime/Master.java
155         examples/startKillTime/StartKillTime.java
156 )
157
158 set(CMAKE_SRC
159 ${CMAKE_HOME_DIRECTORY}/ChangeLog
160 ${CMAKE_HOME_DIRECTORY}/CMakeLists.txt
161 ${CMAKE_HOME_DIRECTORY}/FindJavaSG.cmake
162 ${CMAKE_HOME_DIRECTORY}/FindSimGrid.cmake
163 )
164
165 set(XML_FILES
166     examples/commTime/commTimeDeployment.xml
167     examples/mutualExclusion/ring3.xml
168     examples/mutualExclusion/centralized/mutex_centralized_deployment.xml
169     examples/platform.xml
170     examples/pingPong/pingPongDeployment.xml
171     examples/basic/basicDeployment.xml
172     examples/basic/deploy.xml
173     examples/master_slave_bypass/platform.xml
174     examples/master_slave_kill/platform.xml
175     examples/async/asyncDeployment.xml
176 )
177
178 set(source_to_pack
179 ${CMAKE_SRC}
180 ${JMSG_C_SRC}
181 ${JMSG_JAVA_SRC}
182 ${JAVA_EXAMPLES}
183 ${XML_FILES}
184 )
185
186 string(REPLACE "org/" "${CMAKE_HOME_DIRECTORY}/org/" JAVA_FILES "${JMSG_JAVA_SRC}") 
187 string(REPLACE "org/" "${CMAKE_HOME_DIRECTORY}/classes/org/" JMSG_JAVA_SRC_CLASS "${JMSG_JAVA_SRC}")
188 string(REPLACE ".java" ".class" JMSG_JAVA_SRC_CLASS "${JMSG_JAVA_SRC_CLASS}")
189 string(REPLACE "examples/" "${CMAKE_HOME_DIRECTORY}/examples/" JAVA_EXAMPLES_CLASS "${JAVA_EXAMPLES}") 
190 string(REPLACE ".java" ".class" JAVA_EXAMPLES_CLASS "${JAVA_EXAMPLES_CLASS}")
191
192 #########
193 # FLAGS #
194 #########
195 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings -Wno-unused-function -Wno-unused-parameter -Wno-strict-aliasing -Wno-format-nonliteral -Werror ")
196 set(INCLUDE_PATH "-I${CMAKE_HOME_DIRECTORY}/src -I${SIMGRID_INCLUDES} ")
197 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${INCLUDE_PATH}")
198
199 if(COMPILER_C_VERSION_MAJOR_MINOR MATCHES "4.6")
200     set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error=unused-but-set-variable")
201 endif(COMPILER_C_VERSION_MAJOR_MINOR MATCHES "4.6")
202
203 ###########
204 # TARGETS #
205 ###########
206 # SG_java
207 add_library(SG_java SHARED ${JMSG_C_SRC})
208 if(WIN32)
209     set_target_properties(SG_java PROPERTIES LINK_FLAGS "-Wl,--subsystem,windows,--kill-at ${SIMGRID_LIB}" PREFIX "")
210     find_path(PEXPORTS_PATH NAMES pexports.exe PATHS NO_DEFAULT_PATHS)
211     message(STATUS "pexports: ${PEXPORTS_PATH}")
212     if(PEXPORTS_PATH)
213     add_custom_command(TARGET SG_java POST_BUILD
214     COMMAND ${PEXPORTS_PATH}/pexports.exe ${CMAKE_BINARY_DIR}/SG_java.dll > ${CMAKE_BINARY_DIR}/SG_java.def)
215     endif(PEXPORTS_PATH)
216 else(WIN32)
217     target_link_libraries(SG_java pcre pthread simgrid)
218     if($ENV{SIMGRID_PCRE_LIBRARY_PATH} STREQUAL "")
219         set_target_properties(SG_java PROPERTIES LINK_FLAGS "-L${SIMGRID_LIB_PATH}")
220     else($ENV{SIMGRID_PCRE_LIBRARY_PATH} STREQUAL "")
221         set_target_properties(SG_java PROPERTIES LINK_FLAGS "-L${SIMGRID_LIB_PATH} -L$ENV{SIMGRID_PCRE_LIBRARY_PATH}/lib")
222     endif($ENV{SIMGRID_PCRE_LIBRARY_PATH} STREQUAL "")
223 endif(WIN32)
224
225 # java_classes
226 add_custom_command(
227         OUTPUT  ${JMSG_JAVA_SRC_CLASS}
228         DEPENDS ${JMSG_JAVA_SRC}
229         COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_HOME_DIRECTORY}/classes/"
230         COMMAND ${JAVA_COMPILE} -d ${CMAKE_HOME_DIRECTORY}/classes/
231                                         -cp ${CMAKE_HOME_DIRECTORY}/classes/ ${JAVA_FILES}
232         COMMENT "Compiling java sources of core library..."                                     
233 )
234 add_custom_target(java_classes ALL
235   DEPENDS ${JMSG_JAVA_SRC_CLASS}
236 )
237
238 # simgrid_jar
239 add_custom_target(simgrid_jar ALL
240   COMMAND ${JAVA_ARCHIVE} -cvf ${CMAKE_HOME_DIRECTORY}/simgrid.jar .
241   COMMENT "Building simgrid.jar..."
242   WORKING_DIRECTORY ${CMAKE_HOME_DIRECTORY}/classes 
243 )
244
245 # simgrid_java_examples
246 add_custom_command(
247         COMMENT "Build examples for java"
248         OUTPUT  ${JAVA_EXAMPLES_CLASS}
249         DEPENDS ${JAVA_EXAMPLES}
250         COMMAND ${JAVA_COMPILE} -d ${CMAKE_HOME_DIRECTORY}/examples -cp ${CMAKE_HOME_DIRECTORY}/simgrid.jar ${CMAKE_HOME_DIRECTORY}/examples/basic/*.java  
251         COMMAND ${JAVA_COMPILE} -d ${CMAKE_HOME_DIRECTORY}/examples -cp ${CMAKE_HOME_DIRECTORY}/simgrid.jar ${CMAKE_HOME_DIRECTORY}/examples/async/*.java
252         COMMAND ${JAVA_COMPILE} -d ${CMAKE_HOME_DIRECTORY}/examples -cp ${CMAKE_HOME_DIRECTORY}/simgrid.jar ${CMAKE_HOME_DIRECTORY}/examples/chord/*.java
253         COMMAND ${JAVA_COMPILE} -d ${CMAKE_HOME_DIRECTORY}/examples -cp ${CMAKE_HOME_DIRECTORY}/simgrid.jar ${CMAKE_HOME_DIRECTORY}/examples/commTime/*.java
254           COMMAND ${JAVA_COMPILE} -d ${CMAKE_HOME_DIRECTORY}/examples -cp ${CMAKE_HOME_DIRECTORY}/simgrid.jar ${CMAKE_HOME_DIRECTORY}/examples/master_slave_bypass/*.java
255           COMMAND ${JAVA_COMPILE} -d ${CMAKE_HOME_DIRECTORY}/examples -cp ${CMAKE_HOME_DIRECTORY}/simgrid.jar ${CMAKE_HOME_DIRECTORY}/examples/master_slave_kill/*.java
256         COMMAND ${JAVA_COMPILE} -d ${CMAKE_HOME_DIRECTORY}/examples -cp ${CMAKE_HOME_DIRECTORY}/simgrid.jar ${CMAKE_HOME_DIRECTORY}/examples/mutualExclusion/centralized/*.java                                 
257         COMMAND ${JAVA_COMPILE} -d ${CMAKE_HOME_DIRECTORY}/examples -cp ${CMAKE_HOME_DIRECTORY}/simgrid.jar ${CMAKE_HOME_DIRECTORY}/examples/pingPong/*.java
258         COMMAND ${JAVA_COMPILE} -d ${CMAKE_HOME_DIRECTORY}/examples -cp ${CMAKE_HOME_DIRECTORY}/simgrid.jar ${CMAKE_HOME_DIRECTORY}/examples/startKillTime/*.java
259 )
260
261 add_custom_target(simgrid_java_examples ALL
262         DEPENDS ${JAVA_EXAMPLES_CLASS}
263 )
264
265 ########################
266 # Declare dependencies #
267 ########################
268 add_dependencies(simgrid_jar java_classes)
269 add_dependencies(simgrid_java_examples simgrid_jar SG_java)
270
271 SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES
272 ${CMAKE_HOME_DIRECTORY}/simgrid.jar
273 )
274
275 #####################
276 # Declare our tests #
277 #####################
278 INCLUDE(CTest)
279 ENABLE_TESTING()
280
281 ADD_TEST(basic           ${TESH_BIN_PATH} ${TESH_OPTION} --setenv srcdir=${CMAKE_HOME_DIRECTORY} ${CMAKE_HOME_DIRECTORY}/examples/basic/basic.tesh)
282 ADD_TEST(async           ${TESH_BIN_PATH} ${TESH_OPTION} --setenv srcdir=${CMAKE_HOME_DIRECTORY} ${CMAKE_HOME_DIRECTORY}/examples/async/async.tesh)
283 ADD_TEST(pingPong        ${TESH_BIN_PATH} ${TESH_OPTION} --setenv srcdir=${CMAKE_HOME_DIRECTORY} ${CMAKE_HOME_DIRECTORY}/examples/pingPong/pingpong.tesh)
284 ADD_TEST(CommTime        ${TESH_BIN_PATH} ${TESH_OPTION} --setenv srcdir=${CMAKE_HOME_DIRECTORY} ${CMAKE_HOME_DIRECTORY}/examples/commTime/commtime.tesh)
285 ADD_TEST(mutualExclusion ${TESH_BIN_PATH} ${TESH_OPTION} --setenv srcdir=${CMAKE_HOME_DIRECTORY} ${CMAKE_HOME_DIRECTORY}/examples/mutualExclusion/mutualexclusion.tesh)
286 ADD_TEST(bypass          ${TESH_BIN_PATH} ${TESH_OPTION} --setenv srcdir=${CMAKE_HOME_DIRECTORY} ${CMAKE_HOME_DIRECTORY}/examples/master_slave_bypass/bypass.tesh)
287 ADD_TEST(kill            ${TESH_BIN_PATH} ${TESH_OPTION} --setenv srcdir=${CMAKE_HOME_DIRECTORY} ${CMAKE_HOME_DIRECTORY}/examples/master_slave_kill/kill.tesh)
288 ADD_TEST(startKillTime            ${TESH_BIN_PATH} ${TESH_OPTION} --setenv srcdir=${CMAKE_HOME_DIRECTORY} ${CMAKE_HOME_DIRECTORY}/examples/startKillTime/startKillTime.tesh)
289 #Don't forget to put new test in this list!!!
290 set(test_list basic async pingPong CommTime mutualExclusion bypass kill startKillTime)
291
292 ##########################################
293 # Set the  DYLD_LIBRARY_PATH for mac     #
294 ##########################################
295 if(APPLE)
296     if($ENV{DYLD_LIBRARY_PATH} STREQUAL "")
297         set_tests_properties(${test_list}
298         PROPERTIES ENVIRONMENT "DYLD_LIBRARY_PATH=${CMAKE_HOME_DIRECTORY}/lib:${SIMGRID_LIB_PATH}")
299     else($ENV{DYLD_LIBRARY_PATH} STREQUAL "")
300         set_tests_properties(${test_list}
301         PROPERTIES ENVIRONMENT "DYLD_LIBRARY_PATH=$ENV{DYLD_LIBRARY_PATH}:${CMAKE_HOME_DIRECTORY}/lib:${SIMGRID_LIB_PATH}")
302     endif($ENV{DYLD_LIBRARY_PATH} STREQUAL "")
303 else(APPLE)
304     ##########################################
305     # Set the  LD_LIBRARY_PATH for our tests #
306     ##########################################
307     if(NOT WIN32)
308         if($ENV{LD_LIBRARY_PATH} STREQUAL "")
309             set_tests_properties(${test_list}
310             PROPERTIES ENVIRONMENT "LD_LIBRARY_PATH=${CMAKE_HOME_DIRECTORY}/lib:${SIMGRID_LIB_PATH}")
311         else($ENV{LD_LIBRARY_PATH} STREQUAL "")
312             set_tests_properties(${test_list}
313             PROPERTIES ENVIRONMENT "LD_LIBRARY_PATH=$ENV{LD_LIBRARY_PATH}:${CMAKE_HOME_DIRECTORY}/lib:${SIMGRID_LIB_PATH}")
314         endif($ENV{LD_LIBRARY_PATH} STREQUAL "")
315     endif(NOT WIN32)
316 endif(APPLE)
317
318 ###########
319 # Install #
320 ###########
321 install(TARGETS SG_java
322         DESTINATION $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/java/)
323 install(FILES ${CMAKE_HOME_DIRECTORY}/simgrid.jar
324         DESTINATION $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/java/)
325
326
327 #########
328 # Dist  #
329 #########
330
331 add_custom_target(dist-dir
332   COMMENT "Generating the distribution directory"
333   COMMAND test -e ${DIST_NAME}/ && chmod -R a+w ${DIST_NAME}/ || true
334   COMMAND ${CMAKE_COMMAND} -E remove_directory ${DIST_NAME}/
335   COMMAND ${CMAKE_COMMAND} -E make_directory ${DIST_NAME}
336 )
337
338 set(dirs_in_tarball "")
339 foreach(file ${source_to_pack})
340
341   # This damn prefix is still set somewhere (seems to be in subdirs)
342   string(REPLACE "${CMAKE_HOME_DIRECTORY}/" "" file "${file}")
343   
344   # Create the directory on need
345   get_filename_component(file_location ${file} PATH)
346   string(REGEX MATCH ";${file_location};" OPERATION "${dirs_in_tarball}")
347   if(NOT OPERATION)
348        set(dirs_in_tarball "${dirs_in_tarball};${file_location};")
349        add_custom_command(
350          TARGET dist-dir
351          COMMAND ${CMAKE_COMMAND} -E make_directory ${DIST_NAME}/${file_location}/
352        )       
353    endif(NOT OPERATION)
354    
355    # Actually copy the file
356    add_custom_command(
357      TARGET dist-dir
358      COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_HOME_DIRECTORY}/${file} ${DIST_NAME}/${file_location}/
359    )
360 endforeach(file ${source_to_pack})
361
362 add_custom_target(dist
363   DEPENDS ${CMAKE_BINARY_DIR}/${DIST_NAME}.tar.gz
364   COMMENT "Generated ${DIST_NAME}"
365 )
366 add_custom_command(
367         OUTPUT ${CMAKE_BINARY_DIR}/${DIST_NAME}.tar.gz  
368         COMMENT "Compressing the archive from the distribution directory"
369         COMMAND ${CMAKE_COMMAND} -E tar cf ${DIST_NAME}.tar ${DIST_NAME}/
370         COMMAND gzip -9v ${DIST_NAME}.tar
371         COMMAND ${CMAKE_COMMAND} -E remove_directory ${DIST_NAME}/
372 )
373 add_dependencies(dist dist-dir)
374
375 ########
376 # NOTE #
377 ########
378 file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/Testing/Notes/)
379 file(WRITE ${CMAKE_BINARY_DIR}/Testing/Notes/Build  "GIT version : ${GIT_VERSION}\n")
380 file(APPEND ${CMAKE_BINARY_DIR}/Testing/Notes/Build "Release     : ${DIST_NAME}\n")
381 file(APPEND ${CMAKE_BINARY_DIR}/Testing/Notes/Build "Pipol user  : $ENV{PIPOL_USER}\n")
382 file(APPEND ${CMAKE_BINARY_DIR}/Testing/Notes/Build "Pipol image : $ENV{PIPOL_IMAGE}\n")
383
384 #######
385 # DOC #
386 #######
387 set(WARNING "This file is generated, don't edit it!")
388 set(srcdir ${CMAKE_HOME_DIRECTORY})
389 include(GenerateDoc.cmake)