0
3
0
1 | 1 |
CMAKE_MINIMUM_REQUIRED(VERSION 2.6) |
2 | 2 |
|
3 | 3 |
SET(PROJECT_NAME "LEMON") |
4 | 4 |
PROJECT(${PROJECT_NAME}) |
5 | 5 |
|
6 | 6 |
INCLUDE(FindPythonInterp) |
7 |
INCLUDE(FindWget) |
|
7 | 8 |
|
8 | 9 |
IF(EXISTS ${PROJECT_SOURCE_DIR}/cmake/version.cmake) |
9 | 10 |
INCLUDE(${PROJECT_SOURCE_DIR}/cmake/version.cmake) |
10 | 11 |
ELSEIF(DEFINED ENV{LEMON_VERSION}) |
11 | 12 |
SET(LEMON_VERSION $ENV{LEMON_VERSION} CACHE STRING "LEMON version string.") |
12 | 13 |
ELSE() |
13 | 14 |
EXECUTE_PROCESS( |
14 | 15 |
COMMAND ${PYTHON_EXECUTABLE} ./scripts/chg-len.py |
15 | 16 |
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} |
16 | 17 |
OUTPUT_VARIABLE HG_REVISION_PATH |
17 | 18 |
ERROR_QUIET |
18 | 19 |
OUTPUT_STRIP_TRAILING_WHITESPACE |
19 | 20 |
) |
20 | 21 |
EXECUTE_PROCESS( |
21 | 22 |
COMMAND hg id -i |
22 | 23 |
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} |
23 | 24 |
OUTPUT_VARIABLE HG_REVISION |
24 | 25 |
ERROR_QUIET |
25 | 26 |
OUTPUT_STRIP_TRAILING_WHITESPACE |
26 | 27 |
) |
27 | 28 |
IF(HG_REVISION STREQUAL "") |
28 | 29 |
SET(HG_REVISION_ID "hg-tip") |
29 | 30 |
ELSE() |
30 | 31 |
IF(HG_REVISION_PATH STREQUAL "") |
... | ... |
@@ -33,24 +33,36 @@ |
33 | 33 |
COMMAND ${GHOSTSCRIPT_EXECUTABLE} ${GHOSTSCRIPT_OPTIONS} -r18 -sOutputFile=gen-images/strongly_connected_components.png ${CMAKE_CURRENT_SOURCE_DIR}/images/strongly_connected_components.eps |
34 | 34 |
COMMAND ${CMAKE_COMMAND} -E remove_directory html |
35 | 35 |
COMMAND ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR}/scripts/bib2dox.py ${CMAKE_CURRENT_SOURCE_DIR}/references.bib >references.dox |
36 | 36 |
COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile |
37 | 37 |
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} |
38 | 38 |
) |
39 | 39 |
|
40 | 40 |
SET_TARGET_PROPERTIES(html PROPERTIES PROJECT_LABEL BUILD_DOC) |
41 | 41 |
|
42 | 42 |
IF(UNIX) |
43 | 43 |
INSTALL( |
44 | 44 |
DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/ |
45 | 45 |
DESTINATION share/doc/lemon/html |
46 | 46 |
COMPONENT html_documentation |
47 | 47 |
) |
48 | 48 |
ELSEIF(WIN32) |
49 | 49 |
INSTALL( |
50 | 50 |
DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/ |
51 | 51 |
DESTINATION doc |
52 | 52 |
COMPONENT html_documentation |
53 | 53 |
) |
54 | 54 |
ENDIF() |
55 | 55 |
|
56 | 56 |
ENDIF() |
57 |
|
|
58 |
IF(WGET_FOUND) |
|
59 |
ADD_CUSTOM_TARGET(update-external-tags |
|
60 |
COMMAND ${CMAKE_COMMAND} -E make_directory dl |
|
61 |
# COMMAND ${CMAKE_COMMAND} -E copy libstdc++.tag dl |
|
62 |
COMMAND ${WGET_EXECUTABLE} wget -P dl -N libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag |
|
63 |
COMMAND ${CMAKE_COMMAND} -E rename dl/libstdc++.tag libstdc++.tag |
|
64 |
COMMAND ${CMAKE_COMMAND} -E remove dl/libstdc++.tag |
|
65 |
COMMAND ${CMAKE_COMMAND} -E remove_directory dl |
|
66 |
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} |
|
67 |
) |
|
68 |
ENDIF() |
... | ... |
@@ -204,49 +204,49 @@ |
204 | 204 |
#--------------------------------------------------------------------------- |
205 | 205 |
GENERATE_AUTOGEN_DEF = NO |
206 | 206 |
#--------------------------------------------------------------------------- |
207 | 207 |
# configuration options related to the Perl module output |
208 | 208 |
#--------------------------------------------------------------------------- |
209 | 209 |
GENERATE_PERLMOD = NO |
210 | 210 |
PERLMOD_LATEX = NO |
211 | 211 |
PERLMOD_PRETTY = YES |
212 | 212 |
PERLMOD_MAKEVAR_PREFIX = |
213 | 213 |
#--------------------------------------------------------------------------- |
214 | 214 |
# Configuration options related to the preprocessor |
215 | 215 |
#--------------------------------------------------------------------------- |
216 | 216 |
ENABLE_PREPROCESSING = YES |
217 | 217 |
MACRO_EXPANSION = NO |
218 | 218 |
EXPAND_ONLY_PREDEF = NO |
219 | 219 |
SEARCH_INCLUDES = YES |
220 | 220 |
INCLUDE_PATH = |
221 | 221 |
INCLUDE_FILE_PATTERNS = |
222 | 222 |
PREDEFINED = DOXYGEN |
223 | 223 |
EXPAND_AS_DEFINED = |
224 | 224 |
SKIP_FUNCTION_MACROS = YES |
225 | 225 |
#--------------------------------------------------------------------------- |
226 | 226 |
# Options related to the search engine |
227 | 227 |
#--------------------------------------------------------------------------- |
228 |
TAGFILES = "@ |
|
228 |
TAGFILES = "@abs_top_builddir@/doc/libstdc++.tag = http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/ " |
|
229 | 229 |
GENERATE_TAGFILE = html/lemon.tag |
230 | 230 |
ALLEXTERNALS = NO |
231 | 231 |
EXTERNAL_GROUPS = NO |
232 | 232 |
PERL_PATH = /usr/bin/perl |
233 | 233 |
#--------------------------------------------------------------------------- |
234 | 234 |
# Configuration options related to the dot tool |
235 | 235 |
#--------------------------------------------------------------------------- |
236 | 236 |
CLASS_DIAGRAMS = YES |
237 | 237 |
MSCGEN_PATH = |
238 | 238 |
HIDE_UNDOC_RELATIONS = YES |
239 | 239 |
HAVE_DOT = YES |
240 | 240 |
DOT_FONTNAME = FreeSans |
241 | 241 |
DOT_FONTSIZE = 10 |
242 | 242 |
DOT_FONTPATH = |
243 | 243 |
CLASS_GRAPH = YES |
244 | 244 |
COLLABORATION_GRAPH = NO |
245 | 245 |
GROUP_GRAPHS = NO |
246 | 246 |
UML_LOOK = NO |
247 | 247 |
TEMPLATE_RELATIONS = NO |
248 | 248 |
INCLUDE_GRAPH = NO |
249 | 249 |
INCLUDED_BY_GRAPH = NO |
250 | 250 |
CALL_GRAPH = NO |
251 | 251 |
CALLER_GRAPH = NO |
252 | 252 |
GRAPHICAL_HIERARCHY = NO |
0 comments (0 inline)