lemon/CMakeLists.txt
branch1.1
changeset 683 f1909b4c38d6
parent 677 c5dc4d3124aa
child 742 16d466589b54
     1.1 --- a/lemon/CMakeLists.txt	Thu May 28 16:59:51 2009 +0100
     1.2 +++ b/lemon/CMakeLists.txt	Mon Jun 01 17:49:43 2009 +0100
     1.3 @@ -25,38 +25,44 @@
     1.4      INSTALL(FILES ${GLPK_BIN_DIR}/glpk.dll DESTINATION bin)
     1.5      INSTALL(FILES ${GLPK_BIN_DIR}/libltdl3.dll DESTINATION bin)
     1.6      INSTALL(FILES ${GLPK_BIN_DIR}/zlib1.dll DESTINATION bin)
     1.7 -  ENDIF(WIN32)
     1.8 -ENDIF(LEMON_HAVE_GLPK)
     1.9 +  ENDIF()
    1.10 +ENDIF()
    1.11  
    1.12  IF(LEMON_HAVE_CPLEX)
    1.13    SET(LEMON_SOURCES ${LEMON_SOURCES} cplex.cc)
    1.14    INCLUDE_DIRECTORIES(${CPLEX_INCLUDE_DIRS})
    1.15 -ENDIF(LEMON_HAVE_CPLEX)
    1.16 +ENDIF()
    1.17  
    1.18  IF(LEMON_HAVE_CLP)
    1.19    SET(LEMON_SOURCES ${LEMON_SOURCES} clp.cc)
    1.20    INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS})
    1.21 -ENDIF(LEMON_HAVE_CLP)
    1.22 +ENDIF()
    1.23  
    1.24  IF(LEMON_HAVE_CBC)
    1.25    SET(LEMON_SOURCES ${LEMON_SOURCES} cbc.cc)
    1.26    INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS})
    1.27 -ENDIF(LEMON_HAVE_CBC)
    1.28 +ENDIF()
    1.29  
    1.30  ADD_LIBRARY(lemon ${LEMON_SOURCES})
    1.31 +IF(UNIX)
    1.32 +  SET_TARGET_PROPERTIES(lemon PROPERTIES OUTPUT_NAME emon)
    1.33 +ENDIF()
    1.34  
    1.35  INSTALL(
    1.36    TARGETS lemon
    1.37    ARCHIVE DESTINATION lib
    1.38 -  COMPONENT library)
    1.39 +  COMPONENT library
    1.40 +)
    1.41  
    1.42  INSTALL(
    1.43    DIRECTORY . bits concepts
    1.44    DESTINATION include/lemon
    1.45    COMPONENT headers
    1.46 -  FILES_MATCHING PATTERN "*.h")
    1.47 +  FILES_MATCHING PATTERN "*.h"
    1.48 +)
    1.49  
    1.50  INSTALL(
    1.51    FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h
    1.52    DESTINATION include/lemon
    1.53 -  COMPONENT headers)
    1.54 +  COMPONENT headers
    1.55 +)