0
3
1
1 |
INCLUDE_DIRECTORIES( |
|
2 |
${PROJECT_SOURCE_DIR} |
|
3 |
${PROJECT_BINARY_DIR} |
|
4 |
) |
|
5 |
|
|
6 |
LINK_DIRECTORIES( |
|
7 |
${PROJECT_BINARY_DIR}/lemon |
|
8 |
) |
|
9 |
|
|
10 |
# Uncomment (and adjust) the following two lines. 'myprog' is the name |
|
11 |
# of the final executable ('.exe' will automatically be added to the |
|
12 |
# name on Windows) and 'myprog-main.cc' is the source code it is |
|
13 |
# compiled from. You can add more source files separated by |
|
14 |
# whitespaces. Moreover, you can add multiple similar blocks if you |
|
15 |
# want to build more than one executables. |
|
16 |
|
|
17 |
# ADD_EXECUTABLE(myprog myprog-main.cc) |
|
18 |
# TARGET_LINK_LIBRARIES(myprog lemon) |
|
19 |
... | ... |
@@ -95,64 +95,65 @@ |
95 | 95 |
|
96 | 96 |
IF(CMAKE_CONFIGURATION_TYPES) |
97 | 97 |
LIST(APPEND CMAKE_CONFIGURATION_TYPES Maintainer) |
98 | 98 |
LIST(REMOVE_DUPLICATES CMAKE_CONFIGURATION_TYPES) |
99 | 99 |
SET(CMAKE_CONFIGURATION_TYPES "${CMAKE_CONFIGURATION_TYPES}" CACHE STRING |
100 | 100 |
"Add the configurations that we need" |
101 | 101 |
FORCE) |
102 | 102 |
endif() |
103 | 103 |
|
104 | 104 |
IF(NOT CMAKE_BUILD_TYPE) |
105 | 105 |
SET(CMAKE_BUILD_TYPE "Release") |
106 | 106 |
ENDIF() |
107 | 107 |
|
108 | 108 |
SET( CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING |
109 | 109 |
"Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel Maintainer." |
110 | 110 |
FORCE ) |
111 | 111 |
|
112 | 112 |
|
113 | 113 |
INCLUDE(CheckTypeSize) |
114 | 114 |
CHECK_TYPE_SIZE("long long" LONG_LONG) |
115 | 115 |
SET(LEMON_HAVE_LONG_LONG ${HAVE_LONG_LONG}) |
116 | 116 |
|
117 | 117 |
ENABLE_TESTING() |
118 | 118 |
|
119 | 119 |
IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer") |
120 | 120 |
ADD_CUSTOM_TARGET(check ALL COMMAND ${CMAKE_CTEST_COMMAND}) |
121 | 121 |
ELSE() |
122 | 122 |
ADD_CUSTOM_TARGET(check COMMAND ${CMAKE_CTEST_COMMAND}) |
123 | 123 |
ENDIF() |
124 | 124 |
|
125 | 125 |
ADD_SUBDIRECTORY(lemon) |
126 | 126 |
IF(${CMAKE_SOURCE_DIR} STREQUAL ${PROJECT_SOURCE_DIR}) |
127 |
ADD_SUBDIRECTORY(contrib) |
|
127 | 128 |
ADD_SUBDIRECTORY(demo) |
128 | 129 |
ADD_SUBDIRECTORY(tools) |
129 | 130 |
ADD_SUBDIRECTORY(doc) |
130 | 131 |
ADD_SUBDIRECTORY(test) |
131 | 132 |
ENDIF() |
132 | 133 |
|
133 | 134 |
CONFIGURE_FILE( |
134 | 135 |
${PROJECT_SOURCE_DIR}/cmake/LEMONConfig.cmake.in |
135 | 136 |
${PROJECT_BINARY_DIR}/cmake/LEMONConfig.cmake |
136 | 137 |
@ONLY |
137 | 138 |
) |
138 | 139 |
IF(UNIX) |
139 | 140 |
INSTALL( |
140 | 141 |
FILES ${PROJECT_BINARY_DIR}/cmake/LEMONConfig.cmake |
141 | 142 |
DESTINATION share/lemon/cmake |
142 | 143 |
) |
143 | 144 |
ELSEIF(WIN32) |
144 | 145 |
INSTALL( |
145 | 146 |
FILES ${PROJECT_BINARY_DIR}/cmake/LEMONConfig.cmake |
146 | 147 |
DESTINATION cmake |
147 | 148 |
) |
148 | 149 |
ENDIF() |
149 | 150 |
|
150 | 151 |
IF(${CMAKE_SOURCE_DIR} STREQUAL ${PROJECT_SOURCE_DIR}) |
151 | 152 |
SET(CPACK_PACKAGE_NAME ${PROJECT_NAME}) |
152 | 153 |
SET(CPACK_PACKAGE_VENDOR "EGRES") |
153 | 154 |
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY |
154 | 155 |
"LEMON - Library for Efficient Modeling and Optimization in Networks") |
155 | 156 |
SET(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE") |
156 | 157 |
|
157 | 158 |
SET(CPACK_PACKAGE_VERSION ${PROJECT_VERSION}) |
158 | 159 |
... | ... |
@@ -60,64 +60,65 @@ |
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 | 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 |
"@abs_top_srcdir@/contrib" \ |
|
92 | 93 |
"@abs_top_srcdir@/tools" \ |
93 | 94 |
"@abs_top_srcdir@/test/test_tools.h" \ |
94 | 95 |
"@abs_top_builddir@/doc/references.dox" |
95 | 96 |
INPUT_ENCODING = UTF-8 |
96 | 97 |
FILE_PATTERNS = *.h \ |
97 | 98 |
*.cc \ |
98 | 99 |
*.dox |
99 | 100 |
RECURSIVE = NO |
100 | 101 |
EXCLUDE = |
101 | 102 |
EXCLUDE_SYMLINKS = NO |
102 | 103 |
EXCLUDE_PATTERNS = |
103 | 104 |
EXCLUDE_SYMBOLS = |
104 | 105 |
EXAMPLE_PATH = "@abs_top_srcdir@/demo" \ |
105 | 106 |
"@abs_top_srcdir@/LICENSE" \ |
106 | 107 |
"@abs_top_srcdir@/doc" |
107 | 108 |
EXAMPLE_PATTERNS = |
108 | 109 |
EXAMPLE_RECURSIVE = NO |
109 | 110 |
IMAGE_PATH = "@abs_top_srcdir@/doc/images" \ |
110 | 111 |
"@abs_top_builddir@/doc/gen-images" |
111 | 112 |
INPUT_FILTER = |
112 | 113 |
FILTER_PATTERNS = |
113 | 114 |
FILTER_SOURCE_FILES = NO |
114 | 115 |
#--------------------------------------------------------------------------- |
115 | 116 |
# configuration options related to source browsing |
116 | 117 |
#--------------------------------------------------------------------------- |
117 | 118 |
SOURCE_BROWSER = @LEMON_DOC_SOURCE_BROWSER@ |
118 | 119 |
INLINE_SOURCES = NO |
119 | 120 |
STRIP_CODE_COMMENTS = YES |
120 | 121 |
REFERENCED_BY_RELATION = NO |
121 | 122 |
REFERENCES_RELATION = NO |
122 | 123 |
REFERENCES_LINK_SOURCE = YES |
123 | 124 |
USE_HTAGS = NO |
... | ... |
@@ -4,64 +4,77 @@ |
4 | 4 |
* |
5 | 5 |
* Copyright (C) 2003-2009 |
6 | 6 |
* Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport |
7 | 7 |
* (Egervary Research Group on Combinatorial Optimization, EGRES). |
8 | 8 |
* |
9 | 9 |
* Permission to use, modify and distribute this software is granted |
10 | 10 |
* provided that this copyright notice appears in all copies. For |
11 | 11 |
* precise terms see the accompanying LICENSE file. |
12 | 12 |
* |
13 | 13 |
* This software is provided "AS IS" with no warranty of any kind, |
14 | 14 |
* express or implied, and with no claim as to its suitability for any |
15 | 15 |
* purpose. |
16 | 16 |
* |
17 | 17 |
*/ |
18 | 18 |
|
19 | 19 |
/** |
20 | 20 |
\dir demo |
21 | 21 |
\brief A collection of demo applications. |
22 | 22 |
|
23 | 23 |
This directory contains several simple demo applications, mainly |
24 | 24 |
for educational purposes. |
25 | 25 |
*/ |
26 | 26 |
|
27 | 27 |
/** |
28 | 28 |
\dir doc |
29 | 29 |
\brief Auxiliary (and the whole generated) documentation. |
30 | 30 |
|
31 | 31 |
This directory contains some auxiliary pages and the whole generated |
32 | 32 |
documentation. |
33 | 33 |
*/ |
34 | 34 |
|
35 | 35 |
/** |
36 |
\dir contrib |
|
37 |
\brief Directory for user contributed source codes. |
|
38 |
|
|
39 |
You can place your own C++ code using LEMON into this directory, which |
|
40 |
will compile to an executable along with LEMON when you build the |
|
41 |
library. This is probably the easiest way of compiling short to medium |
|
42 |
codes, for this does require neither a LEMON installed system-wide nor |
|
43 |
adding several paths to the compiler. |
|
44 |
|
|
45 |
Please have a look at <tt>contrib/CMakeLists.txt</tt> for |
|
46 |
instruction on how to add your own files into the build process. */ |
|
47 |
|
|
48 |
/** |
|
36 | 49 |
\dir test |
37 | 50 |
\brief Test programs. |
38 | 51 |
|
39 | 52 |
This directory contains several test programs that check the consistency |
40 | 53 |
of the code. |
41 | 54 |
*/ |
42 | 55 |
|
43 | 56 |
/** |
44 | 57 |
\dir tools |
45 | 58 |
\brief Some useful executables. |
46 | 59 |
|
47 | 60 |
This directory contains the sources of some useful complete executables. |
48 | 61 |
*/ |
49 | 62 |
|
50 | 63 |
/** |
51 | 64 |
\dir lemon |
52 | 65 |
\brief Base include directory of LEMON. |
53 | 66 |
|
54 | 67 |
This is the base directory of LEMON includes, so each include file must be |
55 | 68 |
prefixed with this, e.g. |
56 | 69 |
\code |
57 | 70 |
#include<lemon/list_graph.h> |
58 | 71 |
#include<lemon/dijkstra.h> |
59 | 72 |
\endcode |
60 | 73 |
*/ |
61 | 74 |
|
62 | 75 |
/** |
63 | 76 |
\dir concepts |
64 | 77 |
\brief Concept descriptors and checking classes. |
65 | 78 |
|
66 | 79 |
This directory contains the concept descriptors and concept checking tools. |
67 | 80 |
For more information see the \ref concept "Concepts" module. |
0 comments (0 inline)