gravatar
alpar (Alpar Juttner)
alpar@cs.elte.hu
Merge CMAKE backports to branch 1.2
0 5 1
merge 1.2
4 files changed with 145 insertions and 9 deletions:
↑ Collapse diff ↑
Ignore white space 6 line context
1
prefix=@CMAKE_INSTALL_PREFIX@
2
exec_prefix=@CMAKE_INSTALL_PREFIX@/bin
3
libdir=@CMAKE_INSTALL_PREFIX@/lib
4
includedir=@CMAKE_INSTALL_PREFIX@/include
5

	
6
Name: @PROJECT_NAME@
7
Description: Library for Efficient Modeling and Optimization in Networks
8
Version: @PROJECT_VERSION@
9
Libs: -L${libdir} -lemon @GLPK_LIBS@ @CPLEX_LIBS@ @SOPLEX_LIBS@ @CLP_LIBS@ @CBC_LIBS@
10
Cflags: -I${includedir}
Ignore white space 6 line context
1 1
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
2 2

	
3 3
SET(PROJECT_NAME "LEMON")
4 4
PROJECT(${PROJECT_NAME})
5 5

	
6
INCLUDE(FindPythonInterp)
7
INCLUDE(FindWget)
8

	
6 9
IF(EXISTS ${PROJECT_SOURCE_DIR}/cmake/version.cmake)
7 10
  INCLUDE(${PROJECT_SOURCE_DIR}/cmake/version.cmake)
8 11
ELSEIF(DEFINED ENV{LEMON_VERSION})
9 12
  SET(LEMON_VERSION $ENV{LEMON_VERSION} CACHE STRING "LEMON version string.")
10 13
ELSE()
11 14
  EXECUTE_PROCESS(
15
    COMMAND ${PYTHON_EXECUTABLE} ./scripts/chg-len.py
16
    WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
17
    OUTPUT_VARIABLE HG_REVISION_PATH
18
    ERROR_QUIET
19
    OUTPUT_STRIP_TRAILING_WHITESPACE
20
  )
21
  EXECUTE_PROCESS(
12 22
    COMMAND hg id -i
13 23
    WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
14 24
    OUTPUT_VARIABLE HG_REVISION
15 25
    ERROR_QUIET
16 26
    OUTPUT_STRIP_TRAILING_WHITESPACE
17 27
  )
18 28
  IF(HG_REVISION STREQUAL "")
19
    SET(HG_REVISION "hg-tip")
29
    SET(HG_REVISION_ID "hg-tip")
30
  ELSE()
31
    IF(HG_REVISION_PATH STREQUAL "")
32
      SET(HG_REVISION_ID ${HG_REVISION})
33
    ELSE()
34
      SET(HG_REVISION_ID ${HG_REVISION_PATH}.${HG_REVISION})
35
    ENDIF()
20 36
  ENDIF()
21
  SET(LEMON_VERSION ${HG_REVISION} CACHE STRING "LEMON version string.")
37
  SET(LEMON_VERSION ${HG_REVISION_ID} CACHE STRING "LEMON version string.")
22 38
ENDIF()
23 39

	
24 40
SET(PROJECT_VERSION ${LEMON_VERSION})
25 41

	
26 42
SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
27 43

	
28 44
FIND_PACKAGE(Doxygen)
29 45
FIND_PACKAGE(Ghostscript)
30 46
FIND_PACKAGE(GLPK 4.33)
31 47
FIND_PACKAGE(CPLEX)
32 48
FIND_PACKAGE(COIN)
33 49

	
50
IF(DEFINED ENV{LEMON_CXX_WARNING})
51
  SET(CXX_WARNING $ENV{LEMON_CXX_WARNING})
52
ELSE()
53
  IF(CMAKE_COMPILER_IS_GNUCXX)
54
    SET(CXX_WARNING "-Wall -W -Wunused -Wformat=2 -Wctor-dtor-privacy -Wnon-virtual-dtor -Wno-char-subscripts -Wwrite-strings -Wno-char-subscripts -Wreturn-type -Wcast-qual -Wcast-align -Wsign-promo -Woverloaded-virtual -ansi -fno-strict-aliasing -Wold-style-cast -Wno-unknown-pragmas")
55
    SET(CMAKE_CXX_FLAGS_DEBUG CACHE STRING "-ggdb")
56
    SET(CMAKE_C_FLAGS_DEBUG CACHE STRING "-ggdb")
57
  ELSEIF(MSVC)
58
    # This part is unnecessary 'casue the same is set by the lemon/core.h.
59
    # Still keep it as an example.
60
    SET(CXX_WARNING "/wd4250 /wd4355 /wd4503 /wd4800 /wd4996")
61
    # Suppressed warnings:
62
    # C4250: 'class1' : inherits 'class2::member' via dominance
63
    # C4355: 'this' : used in base member initializer list
64
    # C4503: 'function' : decorated name length exceeded, name was truncated
65
    # C4800: 'type' : forcing value to bool 'true' or 'false'
66
    #        (performance warning)
67
    # C4996: 'function': was declared deprecated
68
  ELSE()
69
    SET(CXX_WARNING "-Wall -W")
70
  ENDIF()
71
ENDIF()
72
SET(LEMON_CXX_WARNING_FLAGS ${CXX_WARNING} CACHE STRING "LEMON warning flags.")
73

	
74
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LEMON_CXX_WARNING_FLAGS}")
75

	
76
SET( CMAKE_CXX_FLAGS_MAINTAINER "-Werror -ggdb" CACHE STRING
77
    "Flags used by the C++ compiler during maintainer builds."
78
    FORCE )
79
SET( CMAKE_C_FLAGS_MAINTAINER "-Werror" CACHE STRING
80
    "Flags used by the C compiler during maintainer builds."
81
    FORCE )
82
SET( CMAKE_EXE_LINKER_FLAGS_MAINTAINER
83
    "-Wl,--warn-unresolved-symbols,--warn-once" CACHE STRING
84
    "Flags used for linking binaries during maintainer builds."
85
    FORCE )
86
SET( CMAKE_SHARED_LINKER_FLAGS_MAINTAINER
87
    "-Wl,--warn-unresolved-symbols,--warn-once" CACHE STRING
88
    "Flags used by the shared libraries linker during maintainer builds."
89
    FORCE )
90
MARK_AS_ADVANCED(
91
    CMAKE_CXX_FLAGS_MAINTAINER
92
    CMAKE_C_FLAGS_MAINTAINER
93
    CMAKE_EXE_LINKER_FLAGS_MAINTAINER
94
    CMAKE_SHARED_LINKER_FLAGS_MAINTAINER )
95

	
96
IF(CMAKE_CONFIGURATION_TYPES)
97
  LIST(APPEND CMAKE_CONFIGURATION_TYPES Maintainer)
98
  LIST(REMOVE_DUPLICATES CMAKE_CONFIGURATION_TYPES)
99
  SET(CMAKE_CONFIGURATION_TYPES "${CMAKE_CONFIGURATION_TYPES}" CACHE STRING
100
      "Add the configurations that we need"
101
      FORCE)
102
 endif()
103

	
104
IF(NOT CMAKE_BUILD_TYPE)
105
  SET(CMAKE_BUILD_TYPE "Release")
106
ENDIF()
107

	
108
SET( CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING
109
    "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel Maintainer."
110
    FORCE )
111

	
112

	
34 113
INCLUDE(CheckTypeSize)
35 114
CHECK_TYPE_SIZE("long long" LONG_LONG)
36 115
SET(LEMON_HAVE_LONG_LONG ${HAVE_LONG_LONG})
37 116

	
38 117
INCLUDE(FindPythonInterp)
39 118

	
40 119
ENABLE_TESTING()
41 120

	
121
IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
122
  ADD_CUSTOM_TARGET(check ALL COMMAND ${CMAKE_CTEST_COMMAND})
123
ELSE()
124
  ADD_CUSTOM_TARGET(check COMMAND ${CMAKE_CTEST_COMMAND})
125
ENDIF()
126

	
42 127
ADD_SUBDIRECTORY(lemon)
43 128
IF(${CMAKE_SOURCE_DIR} STREQUAL ${PROJECT_SOURCE_DIR})
44 129
  ADD_SUBDIRECTORY(demo)
45 130
  ADD_SUBDIRECTORY(tools)
46 131
  ADD_SUBDIRECTORY(doc)
47 132
  ADD_SUBDIRECTORY(test)
48 133
ENDIF()
49 134

	
50 135
CONFIGURE_FILE(
51 136
  ${PROJECT_SOURCE_DIR}/cmake/LEMONConfig.cmake.in
52 137
  ${PROJECT_BINARY_DIR}/cmake/LEMONConfig.cmake
53 138
  @ONLY
54 139
)
55 140
IF(UNIX)
56 141
  INSTALL(
57 142
    FILES ${PROJECT_BINARY_DIR}/cmake/LEMONConfig.cmake
58 143
    DESTINATION share/lemon/cmake
59 144
  )
60 145
ELSEIF(WIN32)
61 146
  INSTALL(
62 147
    FILES ${PROJECT_BINARY_DIR}/cmake/LEMONConfig.cmake
63 148
    DESTINATION cmake
64 149
  )
65 150
ENDIF()
66 151

	
67
IF(${CMAKE_SOURCE_DIR} STREQUAL ${PROJECT_SOURCE_DIR} AND WIN32)
152
IF(${CMAKE_SOURCE_DIR} STREQUAL ${PROJECT_SOURCE_DIR})
68 153
  SET(CPACK_PACKAGE_NAME ${PROJECT_NAME})
69 154
  SET(CPACK_PACKAGE_VENDOR "EGRES")
70 155
  SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY
71 156
    "LEMON - Library for Efficient Modeling and Optimization in Networks")
72 157
  SET(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE")
73 158

	
74 159
  SET(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
75 160

	
76 161
  SET(CPACK_PACKAGE_INSTALL_DIRECTORY
77 162
    "${PROJECT_NAME} ${PROJECT_VERSION}")
78 163
  SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY
79 164
    "${PROJECT_NAME} ${PROJECT_VERSION}")
80 165

	
81 166
  SET(CPACK_COMPONENTS_ALL headers library html_documentation bin)
82 167

	
83 168
  SET(CPACK_COMPONENT_HEADERS_DISPLAY_NAME "C++ headers")
84 169
  SET(CPACK_COMPONENT_LIBRARY_DISPLAY_NAME "Dynamic-link library")
85 170
  SET(CPACK_COMPONENT_BIN_DISPLAY_NAME "Command line utilities")
86 171
  SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DISPLAY_NAME "HTML documentation")
87 172

	
88 173
  SET(CPACK_COMPONENT_HEADERS_DESCRIPTION
89 174
    "C++ header files")
90 175
  SET(CPACK_COMPONENT_LIBRARY_DESCRIPTION
91 176
    "DLL and import library")
92 177
  SET(CPACK_COMPONENT_BIN_DESCRIPTION
93 178
    "Command line utilities")
94 179
  SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DESCRIPTION
95 180
    "Doxygen generated documentation")
96 181

	
97 182
  SET(CPACK_COMPONENT_HEADERS_DEPENDS library)
98 183

	
99 184
  SET(CPACK_COMPONENT_HEADERS_GROUP "Development")
100 185
  SET(CPACK_COMPONENT_LIBRARY_GROUP "Development")
101 186
  SET(CPACK_COMPONENT_HTML_DOCUMENTATION_GROUP "Documentation")
102 187

	
103 188
  SET(CPACK_COMPONENT_GROUP_DEVELOPMENT_DESCRIPTION
104 189
    "Components needed to develop software using LEMON")
105 190
  SET(CPACK_COMPONENT_GROUP_DOCUMENTATION_DESCRIPTION
106 191
    "Documentation of LEMON")
107 192

	
108 193
  SET(CPACK_ALL_INSTALL_TYPES Full Developer)
109 194

	
110 195
  SET(CPACK_COMPONENT_HEADERS_INSTALL_TYPES Developer Full)
111 196
  SET(CPACK_COMPONENT_LIBRARY_INSTALL_TYPES Developer Full)
112 197
  SET(CPACK_COMPONENT_HTML_DOCUMENTATION_INSTALL_TYPES Full)
113 198

	
114 199
  SET(CPACK_GENERATOR "NSIS")
115 200
  SET(CPACK_NSIS_MUI_ICON "${PROJECT_SOURCE_DIR}/cmake/nsis/lemon.ico")
116 201
  SET(CPACK_NSIS_MUI_UNIICON "${PROJECT_SOURCE_DIR}/cmake/nsis/uninstall.ico")
117 202
  #SET(CPACK_PACKAGE_ICON "${PROJECT_SOURCE_DIR}/cmake/nsis\\\\installer.bmp")
118 203
  SET(CPACK_NSIS_INSTALLED_ICON_NAME "bin\\\\lemon.ico")
119 204
  SET(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY} ${PROJECT_NAME}")
120 205
  SET(CPACK_NSIS_HELP_LINK "http:\\\\\\\\lemon.cs.elte.hu")
121 206
  SET(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\\\\\lemon.cs.elte.hu")
122 207
  SET(CPACK_NSIS_CONTACT "lemon-user@lemon.cs.elte.hu")
123 208
  SET(CPACK_NSIS_CREATE_ICONS_EXTRA "
124 209
    CreateShortCut \\\"$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\Documentation.lnk\\\" \\\"$INSTDIR\\\\share\\\\doc\\\\index.html\\\"
125 210
    ")
126 211
  SET(CPACK_NSIS_DELETE_ICONS_EXTRA "
127 212
    !insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP
128 213
    Delete \\\"$SMPROGRAMS\\\\$MUI_TEMP\\\\Documentation.lnk\\\"
129 214
    ")
130 215

	
131 216
  INCLUDE(CPack)
132 217
ENDIF()
Ignore white space 192 line context
1 1
SET(PACKAGE_NAME ${PROJECT_NAME})
2 2
SET(PACKAGE_VERSION ${PROJECT_VERSION})
3 3
SET(abs_top_srcdir ${PROJECT_SOURCE_DIR})
4 4
SET(abs_top_builddir ${PROJECT_BINARY_DIR})
5 5

	
6
SET(LEMON_DOC_SOURCE_BROWSER "NO" CACHE STRING "Include source into the doc (YES/NO).")
7

	
6 8
CONFIGURE_FILE(
7 9
  ${PROJECT_SOURCE_DIR}/doc/Doxyfile.in
8 10
  ${PROJECT_BINARY_DIR}/doc/Doxyfile
9 11
  @ONLY
10 12
)
11 13

	
12 14
IF(DOXYGEN_EXECUTABLE AND PYTHONINTERP_FOUND AND GHOSTSCRIPT_EXECUTABLE)
13 15
  FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/)
14 16
  SET(GHOSTSCRIPT_OPTIONS -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sDEVICE=pngalpha)
15 17
  ADD_CUSTOM_TARGET(html
16 18
    COMMAND ${CMAKE_COMMAND} -E remove_directory gen-images
17 19
    COMMAND ${CMAKE_COMMAND} -E make_directory gen-images
18 20
    COMMAND ${GHOSTSCRIPT_EXECUTABLE} ${GHOSTSCRIPT_OPTIONS} -r18 -sOutputFile=gen-images/bipartite_matching.png ${CMAKE_CURRENT_SOURCE_DIR}/images/bipartite_matching.eps
19 21
    COMMAND ${GHOSTSCRIPT_EXECUTABLE} ${GHOSTSCRIPT_OPTIONS} -r18 -sOutputFile=gen-images/bipartite_partitions.png ${CMAKE_CURRENT_SOURCE_DIR}/images/bipartite_partitions.eps
20 22
    COMMAND ${GHOSTSCRIPT_EXECUTABLE} ${GHOSTSCRIPT_OPTIONS} -r18 -sOutputFile=gen-images/connected_components.png ${CMAKE_CURRENT_SOURCE_DIR}/images/connected_components.eps
21 23
    COMMAND ${GHOSTSCRIPT_EXECUTABLE} ${GHOSTSCRIPT_OPTIONS} -r18 -sOutputFile=gen-images/edge_biconnected_components.png ${CMAKE_CURRENT_SOURCE_DIR}/images/edge_biconnected_components.eps
22 24
    COMMAND ${GHOSTSCRIPT_EXECUTABLE} ${GHOSTSCRIPT_OPTIONS} -r18 -sOutputFile=gen-images/grid_graph.png ${CMAKE_CURRENT_SOURCE_DIR}/images/grid_graph.eps
23 25
    COMMAND ${GHOSTSCRIPT_EXECUTABLE} ${GHOSTSCRIPT_OPTIONS} -r18 -sOutputFile=gen-images/matching.png ${CMAKE_CURRENT_SOURCE_DIR}/images/matching.eps
24 26
    COMMAND ${GHOSTSCRIPT_EXECUTABLE} ${GHOSTSCRIPT_OPTIONS} -r18 -sOutputFile=gen-images/node_biconnected_components.png ${CMAKE_CURRENT_SOURCE_DIR}/images/node_biconnected_components.eps
25 27
    COMMAND ${GHOSTSCRIPT_EXECUTABLE} ${GHOSTSCRIPT_OPTIONS} -r18 -sOutputFile=gen-images/nodeshape_0.png ${CMAKE_CURRENT_SOURCE_DIR}/images/nodeshape_0.eps
26 28
    COMMAND ${GHOSTSCRIPT_EXECUTABLE} ${GHOSTSCRIPT_OPTIONS} -r18 -sOutputFile=gen-images/nodeshape_1.png ${CMAKE_CURRENT_SOURCE_DIR}/images/nodeshape_1.eps
27 29
    COMMAND ${GHOSTSCRIPT_EXECUTABLE} ${GHOSTSCRIPT_OPTIONS} -r18 -sOutputFile=gen-images/nodeshape_2.png ${CMAKE_CURRENT_SOURCE_DIR}/images/nodeshape_2.eps
28 30
    COMMAND ${GHOSTSCRIPT_EXECUTABLE} ${GHOSTSCRIPT_OPTIONS} -r18 -sOutputFile=gen-images/nodeshape_3.png ${CMAKE_CURRENT_SOURCE_DIR}/images/nodeshape_3.eps
29 31
    COMMAND ${GHOSTSCRIPT_EXECUTABLE} ${GHOSTSCRIPT_OPTIONS} -r18 -sOutputFile=gen-images/nodeshape_4.png ${CMAKE_CURRENT_SOURCE_DIR}/images/nodeshape_4.eps
30 32
    COMMAND ${GHOSTSCRIPT_EXECUTABLE} ${GHOSTSCRIPT_OPTIONS} -r18 -sOutputFile=gen-images/planar.png ${CMAKE_CURRENT_SOURCE_DIR}/images/planar.eps
31 33
    COMMAND ${GHOSTSCRIPT_EXECUTABLE} ${GHOSTSCRIPT_OPTIONS} -r18 -sOutputFile=gen-images/strongly_connected_components.png ${CMAKE_CURRENT_SOURCE_DIR}/images/strongly_connected_components.eps
32 34
    COMMAND ${CMAKE_COMMAND} -E remove_directory html
33 35
    COMMAND ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR}/scripts/bib2dox.py ${CMAKE_CURRENT_SOURCE_DIR}/references.bib >references.dox
34 36
    COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile
35 37
    WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
36 38
  )
37 39

	
38 40
  SET_TARGET_PROPERTIES(html PROPERTIES PROJECT_LABEL BUILD_DOC)
39 41

	
40 42
  IF(UNIX)
41 43
    INSTALL(
42 44
      DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/
43 45
      DESTINATION share/doc/lemon/html
44 46
      COMPONENT html_documentation
45 47
    )
46 48
  ELSEIF(WIN32)
47 49
    INSTALL(
48 50
      DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/
49 51
      DESTINATION doc
50 52
      COMPONENT html_documentation
51 53
    )
52 54
  ENDIF()
53 55

	
54 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()
Ignore white space 6 line context
1 1
# Doxyfile 1.5.9
2 2

	
3 3
#---------------------------------------------------------------------------
4 4
# Project related configuration options
5 5
#---------------------------------------------------------------------------
6 6
DOXYFILE_ENCODING      = UTF-8
7 7
PROJECT_NAME           = @PACKAGE_NAME@
8 8
PROJECT_NUMBER         = @PACKAGE_VERSION@
9 9
OUTPUT_DIRECTORY       = 
10 10
CREATE_SUBDIRS         = NO
11 11
OUTPUT_LANGUAGE        = English
12 12
BRIEF_MEMBER_DESC      = YES
13 13
REPEAT_BRIEF           = NO
14 14
ABBREVIATE_BRIEF       = 
15 15
ALWAYS_DETAILED_SEC    = NO
16 16
INLINE_INHERITED_MEMB  = NO
17 17
FULL_PATH_NAMES        = YES
18 18
STRIP_FROM_PATH        = "@abs_top_srcdir@"
19 19
STRIP_FROM_INC_PATH    = "@abs_top_srcdir@"
20 20
SHORT_NAMES            = YES
21 21
JAVADOC_AUTOBRIEF      = NO
22 22
QT_AUTOBRIEF           = NO
23 23
MULTILINE_CPP_IS_BRIEF = NO
24 24
INHERIT_DOCS           = NO
25 25
SEPARATE_MEMBER_PAGES  = NO
26 26
TAB_SIZE               = 8
27 27
ALIASES                = 
28 28
OPTIMIZE_OUTPUT_FOR_C  = NO
29 29
OPTIMIZE_OUTPUT_JAVA   = NO
30 30
OPTIMIZE_FOR_FORTRAN   = NO
31 31
OPTIMIZE_OUTPUT_VHDL   = NO
32 32
BUILTIN_STL_SUPPORT    = YES
33 33
CPP_CLI_SUPPORT        = NO
34 34
SIP_SUPPORT            = NO
35 35
IDL_PROPERTY_SUPPORT   = YES
36 36
DISTRIBUTE_GROUP_DOC   = NO
37 37
SUBGROUPING            = YES
38 38
TYPEDEF_HIDES_STRUCT   = NO
39 39
SYMBOL_CACHE_SIZE      = 0
40 40
#---------------------------------------------------------------------------
41 41
# Build related configuration options
42 42
#---------------------------------------------------------------------------
43 43
EXTRACT_ALL            = NO
44 44
EXTRACT_PRIVATE        = YES
45 45
EXTRACT_STATIC         = YES
46 46
EXTRACT_LOCAL_CLASSES  = NO
47 47
EXTRACT_LOCAL_METHODS  = NO
48 48
EXTRACT_ANON_NSPACES   = NO
49 49
HIDE_UNDOC_MEMBERS     = YES
50 50
HIDE_UNDOC_CLASSES     = YES
51 51
HIDE_FRIEND_COMPOUNDS  = NO
52 52
HIDE_IN_BODY_DOCS      = NO
53 53
INTERNAL_DOCS          = NO
54 54
CASE_SENSE_NAMES       = YES
55 55
HIDE_SCOPE_NAMES       = YES
56 56
SHOW_INCLUDE_FILES     = YES
57 57
INLINE_INFO            = YES
58 58
SORT_MEMBER_DOCS       = NO
59 59
SORT_BRIEF_DOCS        = NO
60 60
SORT_GROUP_NAMES       = NO
61 61
SORT_BY_SCOPE_NAME     = NO
62 62
GENERATE_TODOLIST      = YES
63 63
GENERATE_TESTLIST      = YES
64 64
GENERATE_BUGLIST       = YES
65 65
GENERATE_DEPRECATEDLIST= YES
66 66
ENABLED_SECTIONS       = 
67 67
MAX_INITIALIZER_LINES  = 5
68 68
SHOW_USED_FILES        = NO
69 69
SHOW_DIRECTORIES       = YES
70 70
SHOW_FILES             = YES
71 71
SHOW_NAMESPACES        = YES
72 72
FILE_VERSION_FILTER    = 
73
LAYOUT_FILE            = DoxygenLayout.xml
73
LAYOUT_FILE            = "@abs_top_srcdir@/doc/DoxygenLayout.xml"
74 74
#---------------------------------------------------------------------------
75 75
# configuration options related to warning and progress messages
76 76
#---------------------------------------------------------------------------
77 77
QUIET                  = NO
78 78
WARNINGS               = YES
79 79
WARN_IF_UNDOCUMENTED   = YES
80 80
WARN_IF_DOC_ERROR      = YES
81 81
WARN_NO_PARAMDOC       = NO
82 82
WARN_FORMAT            = "$file:$line: $text"
83 83
WARN_LOGFILE           = doxygen.log
84 84
#---------------------------------------------------------------------------
85 85
# configuration options related to the input files
86 86
#---------------------------------------------------------------------------
87 87
INPUT                  = "@abs_top_srcdir@/doc" \
88 88
                         "@abs_top_srcdir@/lemon" \
89 89
                         "@abs_top_srcdir@/lemon/bits" \
90 90
                         "@abs_top_srcdir@/lemon/concepts" \
91 91
                         "@abs_top_srcdir@/demo" \
92 92
                         "@abs_top_srcdir@/tools" \
93 93
                         "@abs_top_srcdir@/test/test_tools.h" \
94 94
                         "@abs_top_builddir@/doc/references.dox"
95 95
INPUT_ENCODING         = UTF-8
96 96
FILE_PATTERNS          = *.h \
97 97
                         *.cc \
98 98
                         *.dox
99 99
RECURSIVE              = NO
100 100
EXCLUDE                = 
101 101
EXCLUDE_SYMLINKS       = NO
102 102
EXCLUDE_PATTERNS       = 
103 103
EXCLUDE_SYMBOLS        = 
104 104
EXAMPLE_PATH           = "@abs_top_srcdir@/demo" \
105 105
                         "@abs_top_srcdir@/LICENSE" \
106 106
                         "@abs_top_srcdir@/doc"
107 107
EXAMPLE_PATTERNS       = 
108 108
EXAMPLE_RECURSIVE      = NO
109 109
IMAGE_PATH             = "@abs_top_srcdir@/doc/images" \
110 110
                         "@abs_top_builddir@/doc/gen-images"
111 111
INPUT_FILTER           = 
112 112
FILTER_PATTERNS        = 
113 113
FILTER_SOURCE_FILES    = NO
114 114
#---------------------------------------------------------------------------
115 115
# configuration options related to source browsing
116 116
#---------------------------------------------------------------------------
117
SOURCE_BROWSER         = NO
117
SOURCE_BROWSER         = @LEMON_DOC_SOURCE_BROWSER@
118 118
INLINE_SOURCES         = NO
119 119
STRIP_CODE_COMMENTS    = YES
120 120
REFERENCED_BY_RELATION = NO
121 121
REFERENCES_RELATION    = NO
122 122
REFERENCES_LINK_SOURCE = YES
123 123
USE_HTAGS              = NO
124 124
VERBATIM_HEADERS       = NO
125 125
#---------------------------------------------------------------------------
126 126
# configuration options related to the alphabetical class index
127 127
#---------------------------------------------------------------------------
128 128
ALPHABETICAL_INDEX     = YES
129 129
COLS_IN_ALPHA_INDEX    = 2
130 130
IGNORE_PREFIX          = 
131 131
#---------------------------------------------------------------------------
132 132
# configuration options related to the HTML output
133 133
#---------------------------------------------------------------------------
134 134
GENERATE_HTML          = YES
135 135
HTML_OUTPUT            = html
136 136
HTML_FILE_EXTENSION    = .html
137 137
HTML_HEADER            = 
138 138
HTML_FOOTER            = 
139 139
HTML_STYLESHEET        = 
140 140
HTML_ALIGN_MEMBERS     = YES
141 141
HTML_DYNAMIC_SECTIONS  = NO
142 142
GENERATE_DOCSET        = NO
143 143
DOCSET_FEEDNAME        = "Doxygen generated docs"
144 144
DOCSET_BUNDLE_ID       = org.doxygen.Project
145 145
GENERATE_HTMLHELP      = NO
146 146
CHM_FILE               = 
147 147
HHC_LOCATION           = 
148 148
GENERATE_CHI           = NO
149 149
CHM_INDEX_ENCODING     = 
150 150
BINARY_TOC             = NO
151 151
TOC_EXPAND             = NO
152 152
GENERATE_QHP           = NO
153 153
QCH_FILE               = 
154 154
QHP_NAMESPACE          = org.doxygen.Project
155 155
QHP_VIRTUAL_FOLDER     = doc
156 156
QHG_LOCATION           = 
157 157
DISABLE_INDEX          = NO
158 158
ENUM_VALUES_PER_LINE   = 4
159 159
GENERATE_TREEVIEW      = NO
160 160
TREEVIEW_WIDTH         = 250
161 161
FORMULA_FONTSIZE       = 10
162 162
#---------------------------------------------------------------------------
163 163
# configuration options related to the LaTeX output
164 164
#---------------------------------------------------------------------------
165 165
GENERATE_LATEX         = NO
166 166
LATEX_OUTPUT           = latex
167 167
LATEX_CMD_NAME         = latex
168 168
MAKEINDEX_CMD_NAME     = makeindex
169 169
COMPACT_LATEX          = YES
170 170
PAPER_TYPE             = a4wide
171 171
EXTRA_PACKAGES         = amsmath \
172 172
                         amssymb
173 173
LATEX_HEADER           = 
174 174
PDF_HYPERLINKS         = YES
175 175
USE_PDFLATEX           = YES
176 176
LATEX_BATCHMODE        = NO
177 177
LATEX_HIDE_INDICES     = NO
178 178
#---------------------------------------------------------------------------
179 179
# configuration options related to the RTF output
180 180
#---------------------------------------------------------------------------
181 181
GENERATE_RTF           = NO
182 182
RTF_OUTPUT             = rtf
183 183
COMPACT_RTF            = NO
184 184
RTF_HYPERLINKS         = NO
185 185
RTF_STYLESHEET_FILE    = 
186 186
RTF_EXTENSIONS_FILE    = 
187 187
#---------------------------------------------------------------------------
188 188
# configuration options related to the man page output
189 189
#---------------------------------------------------------------------------
190 190
GENERATE_MAN           = NO
191 191
MAN_OUTPUT             = man
192 192
MAN_EXTENSION          = .3
193 193
MAN_LINKS              = NO
194 194
#---------------------------------------------------------------------------
195 195
# configuration options related to the XML output
196 196
#---------------------------------------------------------------------------
197 197
GENERATE_XML           = NO
198 198
XML_OUTPUT             = xml
199 199
XML_SCHEMA             = 
200 200
XML_DTD                = 
201 201
XML_PROGRAMLISTING     = YES
202 202
#---------------------------------------------------------------------------
203 203
# configuration options for the AutoGen Definitions output
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               = "@abs_top_srcdir@/doc/libstdc++.tag = http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/  "
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
253 253
DIRECTORY_GRAPH        = NO
254 254
DOT_IMAGE_FORMAT       = png
255 255
DOT_PATH               = 
256 256
DOTFILE_DIRS           = 
257 257
DOT_GRAPH_MAX_NODES    = 50
258 258
MAX_DOT_GRAPH_DEPTH    = 0
259 259
DOT_TRANSPARENT        = NO
260 260
DOT_MULTI_TARGETS      = NO
261 261
GENERATE_LEGEND        = YES
262 262
DOT_CLEANUP            = YES
263 263
#---------------------------------------------------------------------------
264 264
# Configuration::additions related to the search engine   
265 265
#---------------------------------------------------------------------------
266 266
SEARCHENGINE           = NO
Ignore white space 6 line context
1 1
INCLUDE_DIRECTORIES(
2 2
  ${PROJECT_SOURCE_DIR}
3 3
  ${PROJECT_BINARY_DIR}
4 4
)
5 5

	
6 6
CONFIGURE_FILE(
7 7
  ${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake
8 8
  ${CMAKE_CURRENT_BINARY_DIR}/config.h
9 9
)
10 10

	
11
CONFIGURE_FILE(
12
  ${CMAKE_CURRENT_SOURCE_DIR}/lemon.pc.cmake
13
  ${CMAKE_CURRENT_BINARY_DIR}/lemon.pc
14
  @ONLY
15
)
16

	
11 17
SET(LEMON_SOURCES
12 18
  arg_parser.cc
13 19
  base.cc
14 20
  color.cc
15 21
  lp_base.cc
16 22
  lp_skeleton.cc
17 23
  random.cc
18 24
  bits/windows.cc
19 25
)
20 26

	
21 27
IF(LEMON_HAVE_GLPK)
22 28
  SET(LEMON_SOURCES ${LEMON_SOURCES} glpk.cc)
23 29
  INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIRS})
24 30
  IF(WIN32)
25 31
    INSTALL(FILES ${GLPK_BIN_DIR}/glpk.dll DESTINATION bin)
26 32
    INSTALL(FILES ${GLPK_BIN_DIR}/libltdl3.dll DESTINATION bin)
27 33
    INSTALL(FILES ${GLPK_BIN_DIR}/zlib1.dll DESTINATION bin)
28 34
  ENDIF()
29 35
ENDIF()
30 36

	
31 37
IF(LEMON_HAVE_CPLEX)
32 38
  SET(LEMON_SOURCES ${LEMON_SOURCES} cplex.cc)
33 39
  INCLUDE_DIRECTORIES(${CPLEX_INCLUDE_DIRS})
34 40
ENDIF()
35 41

	
36 42
IF(LEMON_HAVE_CLP)
37 43
  SET(LEMON_SOURCES ${LEMON_SOURCES} clp.cc)
38 44
  INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS})
39 45
ENDIF()
40 46

	
41 47
IF(LEMON_HAVE_CBC)
42 48
  SET(LEMON_SOURCES ${LEMON_SOURCES} cbc.cc)
43 49
  INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS})
44 50
ENDIF()
45 51

	
46 52
ADD_LIBRARY(lemon ${LEMON_SOURCES})
47 53
IF(UNIX)
48 54
  SET_TARGET_PROPERTIES(lemon PROPERTIES OUTPUT_NAME emon)
49 55
ENDIF()
50 56

	
51 57
INSTALL(
52 58
  TARGETS lemon
53 59
  ARCHIVE DESTINATION lib
54 60
  COMPONENT library
55 61
)
56 62

	
57 63
INSTALL(
58 64
  DIRECTORY . bits concepts
59 65
  DESTINATION include/lemon
60 66
  COMPONENT headers
61 67
  FILES_MATCHING PATTERN "*.h"
62 68
)
63 69

	
64 70
INSTALL(
65 71
  FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h
66 72
  DESTINATION include/lemon
67 73
  COMPONENT headers
68 74
)
75

	
76
INSTALL(
77
  FILES ${CMAKE_CURRENT_BINARY_DIR}/lemon.pc
78
  DESTINATION lib/pkgconfig
79
)
80

	
Ignore white space 6 line context
1 1
INCLUDE_DIRECTORIES(
2 2
  ${PROJECT_SOURCE_DIR}
3 3
  ${PROJECT_BINARY_DIR}
4 4
)
5 5

	
6 6
LINK_DIRECTORIES(
7 7
  ${PROJECT_BINARY_DIR}/lemon
8 8
)
9 9

	
10 10
SET(TESTS
11 11
  adaptors_test
12 12
  bellman_ford_test
13 13
  bfs_test
14 14
  circulation_test
15 15
  connectivity_test
16 16
  counter_test
17 17
  dfs_test
18 18
  digraph_test
19 19
  dijkstra_test
20 20
  dim_test
21 21
  edge_set_test
22 22
  error_test
23 23
  euler_test
24 24
  fractional_matching_test
25 25
  gomory_hu_test
26 26
  graph_copy_test
27 27
  graph_test
28 28
  graph_utils_test
29 29
  hao_orlin_test
30 30
  heap_test
31 31
  kruskal_test
32 32
  maps_test
33 33
  matching_test
34 34
  min_cost_arborescence_test
35 35
  min_cost_flow_test
36 36
  min_mean_cycle_test
37 37
  path_test
38 38
  planarity_test
39 39
  preflow_test
40 40
  radix_sort_test
41 41
  random_test
42 42
  suurballe_test
43 43
  time_measure_test
44 44
  unionfind_test
45 45
)
46 46

	
47 47
IF(LEMON_HAVE_LP)
48
  ADD_EXECUTABLE(lp_test lp_test.cc)
48
  IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
49
    ADD_EXECUTABLE(lp_test lp_test.cc)
50
  ELSE()
51
    ADD_EXECUTABLE(lp_test EXCLUDE_FROM_ALL lp_test.cc)
52
  ENDIF()
53

	
49 54
  SET(LP_TEST_LIBS lemon)
50 55

	
51 56
  IF(LEMON_HAVE_GLPK)
52 57
    SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${GLPK_LIBRARIES})
53 58
  ENDIF()
54 59
  IF(LEMON_HAVE_CPLEX)
55 60
    SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${CPLEX_LIBRARIES})
56 61
  ENDIF()
57 62
  IF(LEMON_HAVE_CLP)
58 63
    SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${COIN_CLP_LIBRARIES})
59 64
  ENDIF()
60 65

	
61 66
  TARGET_LINK_LIBRARIES(lp_test ${LP_TEST_LIBS})
62 67
  ADD_TEST(lp_test lp_test)
63 68

	
64 69
  IF(WIN32 AND LEMON_HAVE_GLPK)
65 70
    GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION)
66 71
    GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
67 72
    ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD
68 73
      COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
69 74
      COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
70 75
      COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
71 76
    )
72 77
  ENDIF()
73 78

	
74 79
  IF(WIN32 AND LEMON_HAVE_CPLEX)
75 80
    GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION)
76 81
    GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
77 82
    ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD
78 83
      COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}
79 84
    )
80 85
  ENDIF()
81 86
ENDIF()
82 87

	
83 88
IF(LEMON_HAVE_MIP)
84
  ADD_EXECUTABLE(mip_test mip_test.cc)
89
  IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
90
    ADD_EXECUTABLE(mip_test mip_test.cc)
91
  ELSE()
92
    ADD_EXECUTABLE(mip_test EXCLUDE_FROM_ALL mip_test.cc)
93
  ENDIF()
94

	
85 95
  SET(MIP_TEST_LIBS lemon)
86 96

	
87 97
  IF(LEMON_HAVE_GLPK)
88 98
    SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${GLPK_LIBRARIES})
89 99
  ENDIF()
90 100
  IF(LEMON_HAVE_CPLEX)
91 101
    SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${CPLEX_LIBRARIES})
92 102
  ENDIF()
93 103
  IF(LEMON_HAVE_CBC)
94 104
    SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${COIN_CBC_LIBRARIES})
95 105
  ENDIF()
96 106

	
97 107
  TARGET_LINK_LIBRARIES(mip_test ${MIP_TEST_LIBS})
98 108
  ADD_TEST(mip_test mip_test)
99 109

	
100 110
  IF(WIN32 AND LEMON_HAVE_GLPK)
101 111
    GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)
102 112
    GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
103 113
    ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD
104 114
      COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
105 115
      COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
106 116
      COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
107 117
    )
108 118
  ENDIF()
109 119

	
110 120
  IF(WIN32 AND LEMON_HAVE_CPLEX)
111 121
    GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)
112 122
    GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
113 123
    ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD
114 124
      COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}
115 125
    )
116 126
  ENDIF()
117 127
ENDIF()
118 128

	
119 129
FOREACH(TEST_NAME ${TESTS})
120
  ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
130
  IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
131
    ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
132
  ELSE()
133
    ADD_EXECUTABLE(${TEST_NAME} EXCLUDE_FROM_ALL ${TEST_NAME}.cc)
134
  ENDIF()
121 135
  TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
122 136
  ADD_TEST(${TEST_NAME} ${TEST_NAME})
137
  ADD_DEPENDENCIES(check ${TEST_NAME})
123 138
ENDFOREACH()
0 comments (0 inline)