0
4
0
... | ... |
@@ -21,22 +21,16 @@ |
21 | 21 |
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4250 /wd4355 /wd4800 /wd4996") |
22 | 22 |
# Suppressed warnings: |
23 | 23 |
# C4250: 'class1' : inherits 'class2::member' via dominance |
24 | 24 |
# C4355: 'this' : used in base member initializer list |
25 | 25 |
# C4800: 'type' : forcing value to bool 'true' or 'false' (performance warning) |
26 | 26 |
# C4996: 'function': was declared deprecated |
27 | 27 |
ENDIF(MSVC) |
28 | 28 |
|
29 |
IF(GLPK_FOUND) |
|
30 |
SET(HAVE_LP TRUE) |
|
31 |
SET(HAVE_MIP TRUE) |
|
32 |
SET(HAVE_GLPK TRUE) |
|
33 |
ENDIF(GLPK_FOUND) |
|
34 |
|
|
35 | 29 |
INCLUDE(CheckTypeSize) |
36 | 30 |
CHECK_TYPE_SIZE("long long" LONG_LONG) |
37 | 31 |
|
38 | 32 |
ENABLE_TESTING() |
39 | 33 |
|
40 | 34 |
ADD_SUBDIRECTORY(lemon) |
41 | 35 |
IF(${CMAKE_SOURCE_DIR} STREQUAL ${PROJECT_SOURCE_DIR}) |
42 | 36 |
ADD_SUBDIRECTORY(demo) |
... | ... |
@@ -8,13 +8,20 @@ |
8 | 8 |
FIND_LIBRARY(GLPK_LIBRARY |
9 | 9 |
NAMES glpk |
10 | 10 |
PATHS ${GLPK_REGKEY}/lib) |
11 | 11 |
|
12 | 12 |
INCLUDE(FindPackageHandleStandardArgs) |
13 | 13 |
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GLPK DEFAULT_MSG GLPK_LIBRARY GLPK_INCLUDE_DIR) |
14 | 14 |
|
15 | 15 |
IF(GLPK_FOUND) |
16 |
SET(GLPK_INCLUDE_DIRS ${GLPK_INCLUDE_DIR}) |
|
16 | 17 |
SET(GLPK_LIBRARIES ${GLPK_LIBRARY}) |
17 | 18 |
SET(GLPK_BIN_DIR ${GLPK_ROOT_PATH}/bin) |
18 | 19 |
ENDIF(GLPK_FOUND) |
19 | 20 |
|
20 | 21 |
MARK_AS_ADVANCED(GLPK_LIBRARY GLPK_INCLUDE_DIR GLPK_BIN_DIR) |
22 |
|
|
23 |
IF(GLPK_FOUND) |
|
24 |
SET(HAVE_LP TRUE) |
|
25 |
SET(HAVE_MIP TRUE) |
|
26 |
SET(HAVE_GLPK TRUE) |
|
27 |
ENDIF(GLPK_FOUND) |
... | ... |
@@ -15,17 +15,17 @@ |
15 | 15 |
lp_base.cc |
16 | 16 |
lp_skeleton.cc |
17 | 17 |
random.cc |
18 | 18 |
bits/windows.cc |
19 | 19 |
) |
20 | 20 |
|
21 | 21 |
IF(HAVE_GLPK) |
22 | 22 |
SET(LEMON_SOURCES ${LEMON_SOURCES} glpk.cc) |
23 |
INCLUDE_DIRECTORIES(${ |
|
23 |
INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIRS}) |
|
24 | 24 |
IF(WIN32) |
25 | 25 |
INSTALL(FILES ${GLPK_BIN_DIR}/glpk.dll DESTINATION bin) |
26 | 26 |
INSTALL(FILES ${GLPK_BIN_DIR}/libltdl3.dll DESTINATION bin) |
27 | 27 |
INSTALL(FILES ${GLPK_BIN_DIR}/zlib1.dll DESTINATION bin) |
28 | 28 |
ENDIF(WIN32) |
29 | 29 |
ENDIF(HAVE_GLPK) |
30 | 30 |
|
31 | 31 |
ADD_LIBRARY(lemon ${LEMON_SOURCES}) |
1 | 1 |
INCLUDE_DIRECTORIES( |
2 | 2 |
${PROJECT_SOURCE_DIR} |
3 | 3 |
${PROJECT_BINARY_DIR} |
4 | 4 |
) |
5 | 5 |
|
6 |
IF(HAVE_GLPK) |
|
7 |
INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIR}) |
|
8 |
ENDIF(HAVE_GLPK) |
|
9 |
|
|
10 | 6 |
LINK_DIRECTORIES(${PROJECT_BINARY_DIR}/lemon) |
11 | 7 |
|
12 | 8 |
SET(TESTS |
13 | 9 |
adaptors_test |
14 | 10 |
bfs_test |
15 | 11 |
circulation_test |
16 | 12 |
counter_test |
17 | 13 |
dfs_test |
0 comments (0 inline)