COIN-OR::LEMON - Graph Library

Changeset 675:c5dc4d3124aa in lemon-main


Ignore:
Timestamp:
05/27/09 21:12:08 (16 years ago)
Author:
Akos Ladanyi <ladanyi@…>
Branch:
default
Phase:
public
Message:

Generate and install LEMONConfig.cmake

Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r671 r675  
    3030  ADD_SUBDIRECTORY(test)
    3131ENDIF(${CMAKE_SOURCE_DIR} STREQUAL ${PROJECT_SOURCE_DIR})
     32
     33CONFIGURE_FILE(
     34  ${PROJECT_SOURCE_DIR}/cmake/LEMONConfig.cmake.in
     35  ${PROJECT_BINARY_DIR}/cmake/LEMONConfig.cmake
     36  @ONLY
     37)
     38IF(UNIX)
     39  INSTALL(
     40    FILES ${PROJECT_BINARY_DIR}/cmake/LEMONConfig.cmake
     41    DESTINATION share/lemon/cmake
     42  )
     43ELSEIF(WIN32)
     44  INSTALL(
     45    FILES ${PROJECT_BINARY_DIR}/cmake/LEMONConfig.cmake
     46    DESTINATION cmake
     47  )
     48ENDIF(UNIX)
    3249
    3350IF(${CMAKE_SOURCE_DIR} STREQUAL ${PROJECT_SOURCE_DIR})
  • lemon/CMakeLists.txt

    r627 r675  
    4545
    4646ADD_LIBRARY(lemon ${LEMON_SOURCES})
     47IF(UNIX)
     48  SET_TARGET_PROPERTIES(lemon PROPERTIES OUTPUT_NAME emon)
     49ENDIF(UNIX)
    4750
    4851INSTALL(
    4952  TARGETS lemon
    5053  ARCHIVE DESTINATION lib
    51   COMPONENT library)
     54  COMPONENT library
     55)
    5256
    5357INSTALL(
     
    5559  DESTINATION include/lemon
    5660  COMPONENT headers
    57   FILES_MATCHING PATTERN "*.h")
     61  FILES_MATCHING PATTERN "*.h"
     62)
    5863
    5964INSTALL(
    6065  FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h
    6166  DESTINATION include/lemon
    62   COMPONENT headers)
     67  COMPONENT headers
     68)
Note: See TracChangeset for help on using the changeset viewer.