0
12
0
... | ... |
@@ -22,10 +22,12 @@ |
22 | 22 |
|
23 | 23 |
INCLUDE(FindDoxygen) |
24 | 24 |
INCLUDE(FindGhostscript) |
25 | 25 |
|
26 |
ADD_DEFINITIONS(-DHAVE_CONFIG_H) |
|
27 |
|
|
26 | 28 |
INCLUDE(CheckTypeSize) |
27 |
CHECK_TYPE_SIZE("long long" |
|
29 |
CHECK_TYPE_SIZE("long long" LEMON_LONG_LONG) |
|
28 | 30 |
|
29 | 31 |
ENABLE_TESTING() |
30 | 32 |
|
31 | 33 |
ADD_SUBDIRECTORY(lemon) |
... | ... |
@@ -26,9 +26,9 @@ |
26 | 26 |
|
27 | 27 |
dnl Check the existence of long long type. |
28 | 28 |
AC_CHECK_TYPE(long long, [long_long_found=yes], [long_long_found=no]) |
29 | 29 |
if test x"$long_long_found" = x"yes"; then |
30 |
AC_DEFINE([ |
|
30 |
AC_DEFINE([LEMON_HAVE_LONG_LONG], [1], [Define to 1 if you have long long.]) |
|
31 | 31 |
fi |
32 | 32 |
|
33 | 33 |
dnl Checks for programs. |
34 | 34 |
AC_PROG_CXX |
1 |
INCLUDE_DIRECTORIES( |
|
1 |
INCLUDE_DIRECTORIES( |
|
2 |
${CMAKE_SOURCE_DIR} |
|
3 |
${PROJECT_BINARY_DIR} |
|
4 |
) |
|
5 |
|
|
6 |
CONFIGURE_FILE( |
|
7 |
${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake |
|
8 |
${CMAKE_CURRENT_BINARY_DIR}/config.h |
|
9 |
) |
|
2 | 10 |
|
3 | 11 |
ADD_LIBRARY(lemon |
4 | 12 |
arg_parser.cc |
5 | 13 |
base.cc |
... | ... |
@@ -17,4 +25,9 @@ |
17 | 25 |
DIRECTORY . bits concepts |
18 | 26 |
DESTINATION include/lemon |
19 | 27 |
COMPONENT headers |
20 | 28 |
FILES_MATCHING PATTERN "*.h") |
29 |
|
|
30 |
INSTALL( |
|
31 |
FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h |
|
32 |
DESTINATION include/lemon |
|
33 |
COMPONENT headers) |
... | ... |
@@ -96,9 +96,9 @@ |
96 | 96 |
typedef VectorMap<_Graph, _Item, unsigned long> Map; |
97 | 97 |
}; |
98 | 98 |
|
99 | 99 |
|
100 |
#if defined |
|
100 |
#if defined LEMON_HAVE_LONG_LONG |
|
101 | 101 |
|
102 | 102 |
// long long |
103 | 103 |
template <typename _Graph, typename _Item> |
104 | 104 |
struct DefaultMapSelector<_Graph, _Item, signed long long> { |
... | ... |
@@ -60,9 +60,9 @@ |
60 | 60 |
LDFLAGS="$lx_save_ldflags" |
61 | 61 |
LIBS="$lx_save_libs" |
62 | 62 |
|
63 | 63 |
if test x"$lx_cplex_found" = x"yes"; then |
64 |
AC_DEFINE([ |
|
64 |
AC_DEFINE([LEMON_HAVE_CPLEX], [1], [Define to 1 if you have CPLEX.]) |
|
65 | 65 |
AC_MSG_RESULT([yes]) |
66 | 66 |
else |
67 | 67 |
CPLEX_CFLAGS="" |
68 | 68 |
CPLEX_LDFLAGS="" |
... | ... |
@@ -58,9 +58,9 @@ |
58 | 58 |
LDFLAGS="$lx_save_ldflags" |
59 | 59 |
LIBS="$lx_save_libs" |
60 | 60 |
|
61 | 61 |
if test x"$lx_glpk_found" = x"yes"; then |
62 |
AC_DEFINE([ |
|
62 |
AC_DEFINE([LEMON_HAVE_GLPK], [1], [Define to 1 if you have GLPK.]) |
|
63 | 63 |
AC_MSG_RESULT([yes]) |
64 | 64 |
else |
65 | 65 |
GLPK_CFLAGS="" |
66 | 66 |
GLPK_LDFLAGS="" |
... | ... |
@@ -54,9 +54,9 @@ |
54 | 54 |
LDFLAGS="$lx_save_ldflags" |
55 | 55 |
LIBS="$lx_save_libs" |
56 | 56 |
|
57 | 57 |
if test x"$lx_soplex_found" = x"yes"; then |
58 |
AC_DEFINE([ |
|
58 |
AC_DEFINE([LEMON_HAVE_SOPLEX], [1], [Define to 1 if you have SOPLEX.]) |
|
59 | 59 |
AC_MSG_RESULT([yes]) |
60 | 60 |
else |
61 | 61 |
SOPLEX_CXXFLAGS="" |
62 | 62 |
SOPLEX_LDFLAGS="" |
0 comments (0 inline)