forked from readdy/readdy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
454 lines (402 loc) · 19.6 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
####################################################################
# Copyright © 2018 Computational Molecular Biology Group, #
# Freie Universität Berlin (GER) #
# #
# Redistribution and use in source and binary forms, with or #
# without modification, are permitted provided that the #
# following conditions are met: #
# 1. Redistributions of source code must retain the above #
# copyright notice, this list of conditions and the #
# following disclaimer. #
# 2. Redistributions in binary form must reproduce the above #
# copyright notice, this list of conditions and the following #
# disclaimer in the documentation and/or other materials #
# provided with the distribution. #
# 3. Neither the name of the copyright holder nor the names of #
# its contributors may be used to endorse or promote products #
# derived from this software without specific #
# prior written permission. #
# #
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND #
# CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, #
# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF #
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE #
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR #
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, #
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, #
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; #
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER #
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, #
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) #
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF #
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #
####################################################################
PROJECT(readdy_main C CXX)
#####################################
# #
# User configurable cache variables #
# #
#####################################
# test configuration
SET(READDY_CREATE_TEST_TARGET ON CACHE BOOL "Determines if the test target should be added.")
SET(READDY_CREATE_MEMORY_CHECK_TEST_TARGET OFF CACHE BOOL "Determines if valgrind test targets should be added. Requires the cache variable READDY_CREATE_TEST_TARGET to be ON.")
SET(READDY_INSTALL_UNIT_TEST_EXECUTABLE OFF CACHE BOOL "Determines if the unit test executable should be installed. Requires the cache variable READDY_CREATE_TEST_TARGET to be ON.")
SET(READDY_KERNELS_TO_TEST "SingleCPU,CPU,MPI" CACHE STRING "Variable holding which kernels should be tested in the core library.")
# build single libraries or as a single shared library holding the whole thing
SET(READDY_BUILD_SHARED_COMBINED OFF CACHE BOOL "Determines if one single shared library or shared libraries with respect to the components should be built")
# decide if api wrappers are being generated
SET(READDY_BUILD_PYTHON_WRAPPER ON CACHE BOOL "Build Python wrappers")
SET(READDY_DEBUG_PYTHON_MODULES OFF CACHE BOOL "If this flag is set to ON, the compiled python modules get installed directly into the source tree.")
SET(READDY_DEBUG_CONDA_ROOT_DIR "" CACHE PATH "This only does something, if READDY_DEBUG_PYTHON_MODULES is set to ON. Then, it compiles the readdy libraries into the @conda@/lib directory.")
# documentation target (make doc)
SET(READDY_GENERATE_DOCUMENTATION_TARGET OFF CACHE BOOL "Should generate target for documentation or not.")
SET(READDY_GENERATE_DOCUMENTATION_TARGET_ONLY OFF CACHE BOOL "If set to true, this only generates the documentation target.")
# pypi target
SET(READDY_BUILD_PYPI_EXT OFF CACHE BOOL "Whether to generate the pypi target (monolithic target, skips all tests).")
if (READDY_BUILD_PYPI_EXT)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
set(CMAKE_BUILD_RPATH_USE_ORIGIN ON)
if(APPLE)
set(CMAKE_INSTALL_RPATH @loader_path)
set(CMAKE_BUILD_RPATH @loader_path)
else()
set(CMAKE_INSTALL_RPATH $ORIGIN)
set(CMAKE_BUILD_RPATH $ORIGIN)
endif()
endif()
# log configuration variables of interest
SET(READDY_LOG_CMAKE_CONFIGURATION OFF CACHE BOOL "If turned on, the status of relevant cmake variables is logged at configuration time.")
# build the mpi kernel
set(READDY_BUILD_MPI_KERNEL OFF CACHE BOOL "Whether to build the MPI kernel or not")
# build the scenarios executables for performance benchmarking
set(READDY_BUILD_SCENARIOS OFF CACHE BOOL "Whether to build the Scenarios executable or not")
#####################################
# #
# Basic setup of the project #
# #
#####################################
# minimum cmake version
cmake_minimum_required(VERSION 3.14)
# extend cmake module path to include readdy custom modules
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules")
# ensure that the build directory is not the source directory
INCLUDE(MacroOutOfSourceBuild)
MACRO_ENSURE_OUT_OF_SOURCE_BUILD("${PROJECT_NAME} requires an out source build.")
# makefile settings
SET(CMAKE_VERBOSE_MAKEFILE OFF)
SET(CMAKE_COLOR_MAKEFILE ON)
# version
set(READDY_VERSION "v0.0" CACHE STRING "The version")
mark_as_advanced(READDY_VERSION)
set(READDY_BUILD_STRING "dev" CACHE STRING "Build string")
mark_as_advanced(READDY_BUILD_STRING)
message(STATUS "====================================================")
message(STATUS "CMake configure for readdy version ${READDY_VERSION}-${READDY_BUILD_STRING}")
message(STATUS "====================================================")
# we use c++17
SET(CMAKE_CXX_STANDARD 17)
SET(CMAKE_CXX_STANDARD_REQUIRED ON)
# always build readdy as shared lib
SET(BUILD_SHARED_LIBS ON CACHE BOOL "Build shared libs" FORCE)
# dir vars
SET(READDY_GLOBAL_DIR "${PROJECT_SOURCE_DIR}")
SET(READDY_GLOBAL_INCLUDE_DIR "${PROJECT_SOURCE_DIR}/include")
INCLUDE(CheckCXXCompilerFlag)
function(enable_cxx_compiler_flag_if_supported flag)
string(FIND "${CMAKE_CXX_FLAGS}" "${flag}" flag_already_set)
if(flag_already_set EQUAL -1)
check_cxx_compiler_flag("${flag}" flag_supported)
if(flag_supported)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${flag}" PARENT_SCOPE)
endif()
endif()
endfunction()
#enable_cxx_compiler_flag_if_supported("-pedantic")
#enable_cxx_compiler_flag_if_supported("-fms-extensions")
IF(NOT READDY_GENERATE_DOCUMENTATION_TARGET_ONLY)
# Compile in debug mode by default
IF (NOT CMAKE_BUILD_TYPE)
MESSAGE(STATUS "Setting build type to 'DEBUG' as none was specified.")
SET(CMAKE_BUILD_TYPE DEBUG)
ELSE (NOT CMAKE_BUILD_TYPE)
MESSAGE(STATUS "Using specified '${CMAKE_BUILD_TYPE}' build type.")
ENDIF (NOT CMAKE_BUILD_TYPE)
string(TOLOWER "${CMAKE_BUILD_TYPE}" BUILD_TYPE_LOWER)
if (BUILD_TYPE_LOWER STREQUAL "release")
message(STATUS "--- release build type ---")
else()
message(STATUS "--- debug build type, specifying debug flag ---")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DREADDY_DEBUG")
endif()
# output directories
IF(READDY_DEBUG_PYTHON_MODULES)
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${READDY_DEBUG_CONDA_ROOT_DIR}/lib)
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${READDY_DEBUG_CONDA_ROOT_DIR}/lib)
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${READDY_DEBUG_CONDA_ROOT_DIR}/bin)
SET(READDY_PLUGIN_OUTPUT_DIRECTORY ${READDY_DEBUG_CONDA_ROOT_DIR}/readdy/readdy_plugins)
elseif(READDY_BUILD_PYPI_EXT)
# no op
else()
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
SET(READDY_PLUGIN_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/readdy/readdy_plugins)
ENDIF()
# where to install
IF(WIN32)
IF(NOT READDY_INSTALL_PREFIX)
SET(READDY_INSTALL_PREFIX "$ENV{ProgramFiles}/readdy")
ENDIF(NOT READDY_INSTALL_PREFIX)
ELSE(WIN32)
IF(NOT READDY_INSTALL_PREFIX)
SET(READDY_INSTALL_PREFIX "/usr/local/readdy")
ENDIF(NOT READDY_INSTALL_PREFIX)
ENDIF(WIN32)
IF(${CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT})
SET(CMAKE_INSTALL_PREFIX ${READDY_INSTALL_PREFIX} CACHE PATH "Where to install readdy" FORCE)
ENDIF(${CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT})
SET(EXTRA_COMPILE_FLAGS "")
SET(EXTRA_LINK_FLAGS ${EXTRA_COMPILE_FLAGS})
IF(APPLE)
SET(CMAKE_MACOSX_RPATH 1)
IF (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
SET(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++")
if (CMAKE_BUILD_TYPE STREQUAL "Release")
SET(EXTRA_COMPILE_FLAGS "${EXTRA_COMPILE_FLAGS}")
endif()
ENDIF (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
ENDIF(APPLE)
IF (CMAKE_SYSTEM_NAME MATCHES "Linux")
IF (NOT ANDROID)
if (CMAKE_BUILD_TYPE STREQUAL "Release")
SET(EXTRA_COMPILE_FLAGS "${EXTRA_COMPILE_FLAGS}") # -ffast-math
endif()
SET(EXTRA_LINK_FLAGS "${EXTRA_LINK_FLAGS} -Wl,--no-as-needed -lrt")
ENDIF (NOT ANDROID)
ENDIF(CMAKE_SYSTEM_NAME MATCHES "Linux")
# main project name
SET(READDY_PROJECT_NAME "readdy")
IF (READDY_LOG_CMAKE_CONFIGURATION)
INCLUDE(LogConfiguration)
ENDIF (READDY_LOG_CMAKE_CONFIGURATION)
#####################################
# #
# setup submodules #
# #
#####################################
MESSAGE(STATUS "Initializing and updating submodules")
EXECUTE_PROCESS(COMMAND git submodule update --recursive --init WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
add_subdirectory(libraries/h5rd)
set(graphs_BUILD_TESTING OFF)
add_subdirectory(libraries/graph)
#####################################
# #
# setup testing #
# #
#####################################
IF (READDY_CREATE_TEST_TARGET)
if (EXISTS ${CMAKE_CURRENT_LIST_DIR}/libraries/Catch2/CMakeLists.txt)
add_subdirectory(libraries/Catch2)
include(${CMAKE_CURRENT_LIST_DIR}/libraries/Catch2/contrib/Catch.cmake)
elseif (NOT TARGET Catch2::Catch2)
find_package(Catch2 QUIET)
if (CATCH2_FOUND)
include(Catch)
else()
message(SEND_ERROR "Catch2 not found.")
endif()
endif ()
add_subdirectory(readdy_testing)
ELSE()
# disable testing if there was no submodule
SET(READDY_CREATE_TEST_TARGET OFF)
# if tests are disabled, so are the corresponding memory checks
SET(READDY_CREATE_MEMORY_CHECK_TEST_TARGET OFF)
# no installation of test executable
SET(READDY_INSTALL_UNIT_TEST_EXECUTABLE OFF)
ENDIF()
#####################################
# #
# readdy core #
# #
#####################################
# external spdlog
add_definitions(-DSPDLOG_FMT_EXTERNAL)
# include blosc
SET(DEACTIVATE_SNAPPY ON CACHE BOOL "")
SET(DEACTIVATE_ZSTD OFF CACHE BOOL "")
SET(DEACTIVATE_ZLIB ON CACHE BOOL "")
SET(BLOSC_INSTALL ON CACHE BOOL "")
SET(BUILD_SHARED ON CACHE BOOL "")
SET(BUILD_STATIC OFF CACHE BOOL "")
SET(BUILD_TESTS OFF CACHE BOOL "")
SET(BUILD_BENCHMARKS OFF CACHE BOOL "")
ADD_SUBDIRECTORY(libraries/c-blosc)
IF(READDY_BUILD_SHARED_COMBINED)
INCLUDE(cmake/sources/sources_common.cmake)
INCLUDE(cmake/sources/sources_io.cmake)
INCLUDE(cmake/sources/sources_model.cmake)
INCLUDE(cmake/sources/sources_plugin.cmake)
INCLUDE(cmake/sources/kernels/singlecpu.cmake)
INCLUDE(cmake/sources/sources_readdy.cmake)
# create library
MESSAGE(STATUS "Libraries ReaDDy depends on: ${READDY_DEPENDENT_LIBRARIES}")
MESSAGE(STATUS "Include directories: ${READDY_INCLUDE_DIRS}")
ADD_LIBRARY(${READDY_PROJECT_NAME} ${READDY_ALL_SOURCES} ${READDY_GLOBAL_INCLUDE_DIR})
TARGET_INCLUDE_DIRECTORIES(${READDY_PROJECT_NAME} PUBLIC ${READDY_INCLUDE_DIRS})
TARGET_LINK_LIBRARIES(${READDY_PROJECT_NAME} PUBLIC ${READDY_DEPENDENT_LIBRARIES})
SET_TARGET_PROPERTIES(${READDY_PROJECT_NAME} PROPERTIES
LINK_FLAGS "${EXTRA_LINK_FLAGS}"
COMPILE_FLAGS "${EXTRA_COMPILE_FLAGS}")
ELSEIF(READDY_BUILD_PYPI_EXT)
add_subdirectory(libraries/pybind11)
include(cmake/sources/sources_common.cmake)
include(cmake/sources/sources_io.cmake)
include(cmake/sources/sources_model.cmake)
include(cmake/sources/sources_plugin.cmake)
include(cmake/sources/kernels/singlecpu.cmake)
include(cmake/sources/sources_readdy.cmake)
# also add binding sources
include(cmake/sources/sources_readdybinding.cmake)
configure_file(
"wrappers/python/src/python/setup_pypi.py"
"${CMAKE_CURRENT_BINARY_DIR}/wrappers/python/src/python/setup.py")
# create library
message(STATUS "Libraries ReaDDy depends on: ${READDY_DEPENDENT_LIBRARIES}")
message(STATUS "Include directories: ${READDY_INCLUDE_DIRS}")
pybind11_add_module(readdybinding ${READDY_ALL_SOURCES} ${READDY_GLOBAL_INCLUDE_DIR})
target_include_directories(readdybinding PUBLIC "${READDY_INCLUDE_DIRS}")
target_link_libraries(readdybinding PUBLIC ${READDY_COMMON_LIBRARIES} ${READDY_DEPENDENT_LIBRARIES})
set_target_properties(readdybinding PROPERTIES INSTALL_RPATH "$ORIGIN/")
ELSE()
# include directories from least dependent to most dependent
# i.e.: A depends on B -> add subdirectory of B first
ADD_SUBDIRECTORY(readdy/main/common)
ADD_SUBDIRECTORY(readdy/main/io)
ADD_SUBDIRECTORY(readdy/main/model)
ADD_SUBDIRECTORY(readdy/main/plugin)
ADD_SUBDIRECTORY(kernels/singlecpu)
ADD_SUBDIRECTORY(readdy/main)
ENDIF()
#####################################
# #
# readdy kernels #
# #
#####################################
ADD_SUBDIRECTORY(kernels)
#####################################
# #
# installation (for subprojects #
# handled in their respective #
# build files) #
# #
#####################################
IF(READDY_BUILD_SHARED_COMBINED)
INSTALL (
DIRECTORY ${CMAKE_SOURCE_DIR}/include/
DESTINATION include
FILES_MATCHING PATTERN "*.h*")
INSTALL (
DIRECTORY ${CMAKE_SOURCE_DIR}/kernels/cpu/include/
DESTINATION include
FILES_MATCHING PATTERN "*.h*"
)
INSTALL (
DIRECTORY ${CMAKE_SOURCE_DIR}/libraries/h5rd/include/
DESTINATION include
FILES_MATCHING PATTERN "*.h*")
INSTALL (
DIRECTORY ${CMAKE_SOURCE_DIR}/libraries/json/include/
DESTINATION include
FILES_MATCHING PATTERN "*.h*"
)
INSTALL (
DIRECTORY ${CMAKE_SOURCE_DIR}/libraries/spdlog/include/
DESTINATION include
FILES_MATCHING PATTERN "*.h*"
)
INSTALL (
DIRECTORY ${CMAKE_SOURCE_DIR}/libraries/spdlog/include/
DESTINATION include
FILES_MATCHING PATTERN "*.cc*"
)
INSTALL(TARGETS ${READDY_PROJECT_NAME}
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
INSTALL_TARGETS(/lib RUNTIME_DIRECTORY /lib ${READDY_PROJECT_NAME})
ENDIF(READDY_BUILD_SHARED_COMBINED)
#####################################
# #
# readdy wrappers #
# #
#####################################
IF (READDY_BUILD_PYTHON_WRAPPER)
ADD_SUBDIRECTORY(libraries/pybind11)
ADD_SUBDIRECTORY(wrappers)
ENDIF (READDY_BUILD_PYTHON_WRAPPER)
#####################################
# #
# tests #
# #
#####################################
IF (READDY_CREATE_TEST_TARGET)
ADD_SUBDIRECTORY(readdy/test)
ADD_TEST(NAME readdy-tests COMMAND runUnitTests)
ADD_SUBDIRECTORY(kernels/singlecpu/test)
ENDIF ()
#####################################
# #
# memory checks for the tests #
# #
#####################################
IF(READDY_CREATE_TEST_TARGET)
IF(READDY_CREATE_MEMORY_CHECK_TEST_TARGET)
FIND_PACKAGE(Valgrind QUIET)
IF (NOT VALGRIND_FOUND)
MESSAGE(STATUS "Valgrind not found, therefore no memory checks.")
ELSE (NOT VALGRIND_FOUND)
MESSAGE(STATUS "Valgrind found, memory checks enabled.")
SET(VALGRIND_OPTIONS --tool=memcheck --leak-check=yes --show-reachable=yes --num-callers=30 --leak-check=summary --leak-resolution=high)
FUNCTION(ADD_MEMCHECK_TEST name binary)
SET(memcheck_command "valgrind ${VALGRIND_OPTIONS}")
SEPARATE_ARGUMENTS(memcheck_command)
ADD_TEST(NAME memcheck_${name} COMMAND ${memcheck_command} "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${binary}" ${ARGN})
ENDFUNCTION(ADD_MEMCHECK_TEST)
# can be called by "ctest -V -R memcheck_readdy-tests"
ADD_MEMCHECK_TEST(readdy-tests runUnitTests)
ENDIF (NOT VALGRIND_FOUND)
ENDIF(READDY_CREATE_MEMORY_CHECK_TEST_TARGET)
ENDIF(READDY_CREATE_TEST_TARGET)
if(READDY_BUILD_SCENARIOS)
add_subdirectory(examples/scenarios)
if(READDY_BUILD_MPI_KERNEL)
add_subdirectory(examples/mpi_scenarios)
endif()
endif()
ELSE()
SET(READDY_GENERATE_DOCUMENTATION_TARGET ON)
ENDIF()
#####################################
# #
# documentation (doxygen) #
# #
#####################################
IF(READDY_GENERATE_DOCUMENTATION_TARGET)
FIND_PACKAGE (Doxygen REQUIRED)
FIND_PROGRAM (DOXYFILE_MAKE make)
MARK_AS_ADVANCED (DOXYFILE_MAKE)
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/docs/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
ADD_CUSTOM_TARGET(doc
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generating API documentation with Doxygen" VERBATIM)
IF(MAKEINDEX_COMPILER AND DOXYFILE_MAKE)
ADD_CUSTOM_COMMAND(
TARGET doc
POST_BUILD
COMMAND "${DOXYFILE_MAKE}"
COMMENT "Running Doxygen in ${CMAKE_CURRENT_BINARY_DIR}/docs..."
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/docs")
ENDIF()
ENDIF(READDY_GENERATE_DOCUMENTATION_TARGET)