COIN-OR::LEMON - Graph Library

Changeset 481:861a9d5ff283 in lemon-main for CMakeLists.txt


Ignore:
Timestamp:
01/23/09 17:42:07 (16 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Children:
485:c5919679af17, 488:9b9ffe7d9b75
Parents:
477:e6ae4999cf22 (diff), 480:64c2641286df (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Phase:
public
Message:

Merge (manually add cmake/FindGLPK.cmake to Makefile.am)

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r477 r481  
    11CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
    22
    3 SET(PROJECT_NAME "LEMON")
    4 SET(PROJECT_VERSION "hg-tip" CACHE STRING "The version string.")
     3IF(EXISTS ${CMAKE_SOURCE_DIR}/cmake/version.cmake)
     4  INCLUDE(${CMAKE_SOURCE_DIR}/cmake/version.cmake)
     5ELSE(EXISTS ${CMAKE_SOURCE_DIR}/cmake/version.cmake)
     6  SET(PROJECT_NAME "LEMON")
     7  SET(PROJECT_VERSION "hg-tip" CACHE STRING "LEMON version string.")
     8ENDIF(EXISTS ${CMAKE_SOURCE_DIR}/cmake/version.cmake)
    59
    610PROJECT(${PROJECT_NAME})
     
    3741
    3842IF(WIN32)
    39   INSTALL(FILES ${CMAKE_SOURCE_DIR}/cmake/nsis/lemon.ico
    40     DESTINATION bin)
    41 ENDIF(WIN32)
    42 
    43 IF(WIN32)
    4443  SET(CPACK_PACKAGE_NAME ${PROJECT_NAME})
    45   SET(CPACK_PACKAGE_VENDOR
    46     "EGRES - Egervary Research Group on Combinatorial Optimization")
     44  SET(CPACK_PACKAGE_VENDOR "EGRES")
    4745  SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY
    4846    "LEMON - Library of Efficient Models and Optimization in Networks")
     
    5654    "${PROJECT_NAME} ${PROJECT_VERSION}")
    5755
    58   # Variables to generate a component-based installer.
    59   #SET(CPACK_COMPONENTS_ALL headers library html_documentation)
     56  SET(CPACK_COMPONENTS_ALL headers library html_documentation)
    6057
    61   #SET(CPACK_COMPONENT_HEADERS_DISPLAY_NAME "C++ headers")
    62   #SET(CPACK_COMPONENT_LIBRARY_DISPLAY_NAME "Static library")
    63   #SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DISPLAY_NAME "HTML documentation")
     58  SET(CPACK_COMPONENT_HEADERS_DISPLAY_NAME "C++ headers")
     59  SET(CPACK_COMPONENT_LIBRARY_DISPLAY_NAME "Dynamic-link library")
     60  SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DISPLAY_NAME "HTML documentation")
    6461
    65   #SET(CPACK_COMPONENT_HEADERS_DESCRIPTION
    66   #  "C++ header files for use with the LEMON library")
    67   #SET(CPACK_COMPONENT_LIBRARY_DESCRIPTION
    68   #  "Static library used to build programs with LEMON")
    69   #SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DESCRIPTION
    70   #  "Doxygen generated documentation")
     62  SET(CPACK_COMPONENT_HEADERS_DESCRIPTION
     63    "C++ header files")
     64  SET(CPACK_COMPONENT_LIBRARY_DESCRIPTION
     65    "DLL and import library")
     66  SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DESCRIPTION
     67    "Doxygen generated documentation")
    7168
    72   #SET(CPACK_COMPONENT_HEADERS_DEPENDS library)
     69  SET(CPACK_COMPONENT_HEADERS_DEPENDS library)
    7370
    74   #SET(CPACK_COMPONENT_HEADERS_GROUP "Development")
    75   #SET(CPACK_COMPONENT_LIBRARY_GROUP "Development")
    76   #SET(CPACK_COMPONENT_HTML_DOCUMENTATION_GROUP "Documentation")
     71  SET(CPACK_COMPONENT_HEADERS_GROUP "Development")
     72  SET(CPACK_COMPONENT_LIBRARY_GROUP "Development")
     73  SET(CPACK_COMPONENT_HTML_DOCUMENTATION_GROUP "Documentation")
    7774
    78   #SET(CPACK_COMPONENT_GROUP_DEVELOPMENT_DESCRIPTION
    79   #  "Components needed to develop software using LEMON")
    80   #SET(CPACK_COMPONENT_GROUP_DOCUMENTATION_DESCRIPTION
    81   #  "Documentation of LEMON")
     75  SET(CPACK_COMPONENT_GROUP_DEVELOPMENT_DESCRIPTION
     76    "Components needed to develop software using LEMON")
     77  SET(CPACK_COMPONENT_GROUP_DOCUMENTATION_DESCRIPTION
     78    "Documentation of LEMON")
    8279
    83   #SET(CPACK_ALL_INSTALL_TYPES Full Developer)
     80  SET(CPACK_ALL_INSTALL_TYPES Full Developer)
    8481
    85   #SET(CPACK_COMPONENT_HEADERS_INSTALL_TYPES Developer Full)
    86   #SET(CPACK_COMPONENT_LIBRARY_INSTALL_TYPES Developer Full)
    87   #SET(CPACK_COMPONENT_HTML_DOCUMENTATION_INSTALL_TYPES Full)
     82  SET(CPACK_COMPONENT_HEADERS_INSTALL_TYPES Developer Full)
     83  SET(CPACK_COMPONENT_LIBRARY_INSTALL_TYPES Developer Full)
     84  SET(CPACK_COMPONENT_HTML_DOCUMENTATION_INSTALL_TYPES Full)
    8885
    8986  SET(CPACK_GENERATOR "NSIS")
  • CMakeLists.txt

    r480 r481  
    1414INCLUDE(FindDoxygen)
    1515INCLUDE(FindGhostscript)
     16FIND_PACKAGE(GLPK 4.33)
     17
     18ADD_DEFINITIONS(-DHAVE_CONFIG_H)
     19
     20IF(MSVC)
     21  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4250 /wd4355 /wd4800 /wd4996")
     22# Suppressed warnings:
     23# C4250: 'class1' : inherits 'class2::member' via dominance
     24# C4355: 'this' : used in base member initializer list
     25# C4800: 'type' : forcing value to bool 'true' or 'false' (performance warning)
     26# C4996: 'function': was declared deprecated
     27ENDIF(MSVC)
     28
     29IF(GLPK_FOUND)
     30  SET(HAVE_LP TRUE)
     31  SET(HAVE_MIP TRUE)
     32  SET(HAVE_GLPK TRUE)
     33ENDIF(GLPK_FOUND)
    1634
    1735ENABLE_TESTING()
Note: See TracChangeset for help on using the changeset viewer.