COIN-OR::LEMON - Graph Library

Changeset 1:4721c71fdbfc in lemon-benchmark


Ignore:
Timestamp:
06/02/09 15:55:23 (10 years ago)
Author:
Akos Ladanyi <ladanyi@…>
Branch:
default
Phase:
public
Message:

Support building LEMON as a subproject

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r0 r1  
    99SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
    1010
    11 FIND_PACKAGE(LEMON REQUIRED)
     11IF(EXISTS ${CMAKE_SOURCE_DIR}/lemon)
     12  ADD_SUBDIRECTORY(lemon)
     13  SET(LEMON_INCLUDE_DIRS
     14    ${CMAKE_SOURCE_DIR}/lemon
     15    ${CMAKE_BINARY_DIR}/lemon
     16  )
     17  SET(LEMON_LIBRARIES lemon)
     18ELSE()
     19  FIND_PACKAGE(LEMON QUIET NO_MODULE)
     20  FIND_PACKAGE(LEMON REQUIRED)
     21ENDIF()
     22
    1223FIND_PACKAGE(Doxygen)
    1324
     
    1728  ${LEMON_INCLUDE_DIRS}
    1829)
    19 
    20 LINK_DIRECTORIES(${PROJECT_BINARY_DIR}/lemon)
    2130
    2231ADD_EXECUTABLE(lemon-project main.cc)
Note: See TracChangeset for help on using the changeset viewer.