COIN-OR::LEMON - Graph Library

Changeset 675:c5dc4d3124aa in lemon-1.2 for CMakeLists.txt


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

Generate and install LEMONConfig.cmake

File:
1 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})
Note: See TracChangeset for help on using the changeset viewer.