1.1 --- a/lemon/CMakeLists.txt Wed Apr 29 17:48:18 2009 +0100
1.2 +++ b/lemon/CMakeLists.txt Wed Apr 29 17:48:41 2009 +0100
1.3 @@ -18,7 +18,7 @@
1.4 bits/windows.cc
1.5 )
1.6
1.7 -IF(HAVE_GLPK)
1.8 +IF(LEMON_HAVE_GLPK)
1.9 SET(LEMON_SOURCES ${LEMON_SOURCES} glpk.cc)
1.10 INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIRS})
1.11 IF(WIN32)
1.12 @@ -26,22 +26,22 @@
1.13 INSTALL(FILES ${GLPK_BIN_DIR}/libltdl3.dll DESTINATION bin)
1.14 INSTALL(FILES ${GLPK_BIN_DIR}/zlib1.dll DESTINATION bin)
1.15 ENDIF(WIN32)
1.16 -ENDIF(HAVE_GLPK)
1.17 +ENDIF(LEMON_HAVE_GLPK)
1.18
1.19 -IF(HAVE_CPLEX)
1.20 +IF(LEMON_HAVE_CPLEX)
1.21 SET(LEMON_SOURCES ${LEMON_SOURCES} cplex.cc)
1.22 INCLUDE_DIRECTORIES(${CPLEX_INCLUDE_DIRS})
1.23 -ENDIF(HAVE_CPLEX)
1.24 +ENDIF(LEMON_HAVE_CPLEX)
1.25
1.26 -IF(HAVE_CLP)
1.27 +IF(LEMON_HAVE_CLP)
1.28 SET(LEMON_SOURCES ${LEMON_SOURCES} clp.cc)
1.29 INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS})
1.30 -ENDIF(HAVE_CLP)
1.31 +ENDIF(LEMON_HAVE_CLP)
1.32
1.33 -IF(HAVE_CBC)
1.34 +IF(LEMON_HAVE_CBC)
1.35 SET(LEMON_SOURCES ${LEMON_SOURCES} cbc.cc)
1.36 INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS})
1.37 -ENDIF(HAVE_CBC)
1.38 +ENDIF(LEMON_HAVE_CBC)
1.39
1.40 ADD_LIBRARY(lemon ${LEMON_SOURCES})
1.41
1.42 @@ -55,3 +55,8 @@
1.43 DESTINATION include/lemon
1.44 COMPONENT headers
1.45 FILES_MATCHING PATTERN "*.h")
1.46 +
1.47 +INSTALL(
1.48 + FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h
1.49 + DESTINATION include/lemon
1.50 + COMPONENT headers)