0
3
0
... | ... |
@@ -8,37 +8,33 @@ |
8 | 8 |
ENDIF(EXISTS ${CMAKE_SOURCE_DIR}/cmake/version.cmake) |
9 | 9 |
|
10 | 10 |
PROJECT(${PROJECT_NAME}) |
11 | 11 |
|
12 | 12 |
SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) |
13 | 13 |
|
14 | 14 |
INCLUDE(FindDoxygen) |
15 | 15 |
INCLUDE(FindGhostscript) |
16 | 16 |
FIND_PACKAGE(GLPK 4.33) |
17 | 17 |
FIND_PACKAGE(CPLEX) |
18 | 18 |
FIND_PACKAGE(COIN) |
19 | 19 |
|
20 |
ADD_DEFINITIONS(-DHAVE_CONFIG_H) |
|
21 |
|
|
22 | 20 |
IF(MSVC) |
23 | 21 |
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4250 /wd4355 /wd4800 /wd4996") |
24 | 22 |
# Suppressed warnings: |
25 | 23 |
# C4250: 'class1' : inherits 'class2::member' via dominance |
26 | 24 |
# C4355: 'this' : used in base member initializer list |
27 | 25 |
# C4800: 'type' : forcing value to bool 'true' or 'false' (performance warning) |
28 | 26 |
# C4996: 'function': was declared deprecated |
29 | 27 |
ENDIF(MSVC) |
30 | 28 |
|
31 |
ADD_DEFINITIONS(-DHAVE_CONFIG_H) |
|
32 |
|
|
33 | 29 |
INCLUDE(CheckTypeSize) |
34 | 30 |
CHECK_TYPE_SIZE("long long" LEMON_LONG_LONG) |
35 | 31 |
|
36 | 32 |
ENABLE_TESTING() |
37 | 33 |
|
38 | 34 |
ADD_SUBDIRECTORY(lemon) |
39 | 35 |
IF(${CMAKE_SOURCE_DIR} STREQUAL ${PROJECT_SOURCE_DIR}) |
40 | 36 |
ADD_SUBDIRECTORY(demo) |
41 | 37 |
ADD_SUBDIRECTORY(tools) |
42 | 38 |
ADD_SUBDIRECTORY(doc) |
43 | 39 |
ADD_SUBDIRECTORY(test) |
44 | 40 |
ENDIF(${CMAKE_SOURCE_DIR} STREQUAL ${PROJECT_SOURCE_DIR}) |
... | ... |
@@ -12,27 +12,25 @@ |
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 |
#include <sstream> |
20 | 20 |
#include <lemon/lp_skeleton.h> |
21 | 21 |
#include "test_tools.h" |
22 | 22 |
#include <lemon/tolerance.h> |
23 | 23 |
|
24 |
#ifdef HAVE_CONFIG_H |
|
25 | 24 |
#include <lemon/config.h> |
26 |
#endif |
|
27 | 25 |
|
28 | 26 |
#ifdef LEMON_HAVE_GLPK |
29 | 27 |
#include <lemon/glpk.h> |
30 | 28 |
#endif |
31 | 29 |
|
32 | 30 |
#ifdef LEMON_HAVE_CPLEX |
33 | 31 |
#include <lemon/cplex.h> |
34 | 32 |
#endif |
35 | 33 |
|
36 | 34 |
#ifdef LEMON_HAVE_SOPLEX |
37 | 35 |
#include <lemon/soplex.h> |
38 | 36 |
#endif |
... | ... |
@@ -9,27 +9,25 @@ |
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 |
#include "test_tools.h" |
20 | 20 |
|
21 |
#ifdef HAVE_CONFIG_H |
|
22 | 21 |
#include <lemon/config.h> |
23 |
#endif |
|
24 | 22 |
|
25 | 23 |
#ifdef LEMON_HAVE_CPLEX |
26 | 24 |
#include <lemon/cplex.h> |
27 | 25 |
#endif |
28 | 26 |
|
29 | 27 |
#ifdef LEMON_HAVE_GLPK |
30 | 28 |
#include <lemon/glpk.h> |
31 | 29 |
#endif |
32 | 30 |
|
33 | 31 |
#ifdef LEMON_HAVE_CBC |
34 | 32 |
#include <lemon/cbc.h> |
35 | 33 |
#endif |
0 comments (0 inline)