COIN-OR::LEMON - Graph Library

Changeset 475:f59df77f5c8d in lemon-1.2 for lemon


Ignore:
Timestamp:
01/21/09 19:08:31 (11 years ago)
Author:
Akos Ladanyi <ladanyi@…>
Branch:
default
Phase:
public
Message:

Fix CMAKE build without GLPK

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/CMakeLists.txt

    r473 r475  
    22  ${CMAKE_SOURCE_DIR}
    33  ${CMAKE_BINARY_DIR}
    4   ${GLPK_INCLUDE_DIR}
    54)
    65
     
    2019IF(HAVE_GLPK)
    2120  SET(LEMON_SOURCES ${LEMON_SOURCES} glpk.cc)
     21  INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIR})
     22  IF(WIN32)
     23    INSTALL(FILES ${GLPK_BIN_DIR}/glpk.dll DESTINATION bin)
     24    INSTALL(FILES ${GLPK_BIN_DIR}/libltdl3.dll DESTINATION bin)
     25    INSTALL(FILES ${GLPK_BIN_DIR}/zlib1.dll DESTINATION bin)
     26  ENDIF(WIN32)
    2227ENDIF(HAVE_GLPK)
    2328
     
    3439  COMPONENT headers
    3540  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 TracChangeset for help on using the changeset viewer.