Line | |
---|
1 | INCLUDE_DIRECTORIES( |
---|
2 | ${CMAKE_SOURCE_DIR} |
---|
3 | ${CMAKE_BINARY_DIR} |
---|
4 | ${GLPK_INCLUDE_DIR} |
---|
5 | ) |
---|
6 | |
---|
7 | CONFIGURE_FILE( |
---|
8 | ${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake |
---|
9 | ${CMAKE_CURRENT_BINARY_DIR}/config.h |
---|
10 | ) |
---|
11 | |
---|
12 | SET(LEMON_SOURCES |
---|
13 | arg_parser.cc |
---|
14 | base.cc |
---|
15 | color.cc |
---|
16 | lp_base.cc |
---|
17 | lp_skeleton.cc |
---|
18 | random.cc) |
---|
19 | |
---|
20 | IF(HAVE_GLPK) |
---|
21 | SET(LEMON_SOURCES ${LEMON_SOURCES} glpk.cc) |
---|
22 | ENDIF(HAVE_GLPK) |
---|
23 | |
---|
24 | ADD_LIBRARY(lemon ${LEMON_SOURCES}) |
---|
25 | |
---|
26 | INSTALL( |
---|
27 | TARGETS lemon |
---|
28 | ARCHIVE DESTINATION lib |
---|
29 | COMPONENT library) |
---|
30 | |
---|
31 | INSTALL( |
---|
32 | DIRECTORY . bits concepts |
---|
33 | DESTINATION include/lemon |
---|
34 | COMPONENT headers |
---|
35 | FILES_MATCHING PATTERN "*.h") |
---|
36 | |
---|
37 | IF(WIN32) |
---|
38 | INSTALL(FILES ${GLPK_BIN_DIR}/glpk.dll DESTINATION bin) |
---|
39 | INSTALL(FILES ${GLPK_BIN_DIR}/libltdl3.dll DESTINATION bin) |
---|
40 | INSTALL(FILES ${GLPK_BIN_DIR}/zlib1.dll DESTINATION bin) |
---|
41 | ENDIF(WIN32) |
---|
Note: See
TracBrowser
for help on using the repository browser.