diff --git a/lemon/CMakeLists.txt b/lemon/CMakeLists.txt --- a/lemon/CMakeLists.txt +++ b/lemon/CMakeLists.txt @@ -18,7 +18,7 @@ bits/windows.cc ) -IF(HAVE_GLPK) +IF(LEMON_HAVE_GLPK) SET(LEMON_SOURCES ${LEMON_SOURCES} glpk.cc) INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIRS}) IF(WIN32) @@ -26,22 +26,22 @@ INSTALL(FILES ${GLPK_BIN_DIR}/libltdl3.dll DESTINATION bin) INSTALL(FILES ${GLPK_BIN_DIR}/zlib1.dll DESTINATION bin) ENDIF(WIN32) -ENDIF(HAVE_GLPK) +ENDIF(LEMON_HAVE_GLPK) -IF(HAVE_CPLEX) +IF(LEMON_HAVE_CPLEX) SET(LEMON_SOURCES ${LEMON_SOURCES} cplex.cc) INCLUDE_DIRECTORIES(${CPLEX_INCLUDE_DIRS}) -ENDIF(HAVE_CPLEX) +ENDIF(LEMON_HAVE_CPLEX) -IF(HAVE_CLP) +IF(LEMON_HAVE_CLP) SET(LEMON_SOURCES ${LEMON_SOURCES} clp.cc) INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS}) -ENDIF(HAVE_CLP) +ENDIF(LEMON_HAVE_CLP) -IF(HAVE_CBC) +IF(LEMON_HAVE_CBC) SET(LEMON_SOURCES ${LEMON_SOURCES} cbc.cc) INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS}) -ENDIF(HAVE_CBC) +ENDIF(LEMON_HAVE_CBC) ADD_LIBRARY(lemon ${LEMON_SOURCES}) @@ -55,3 +55,8 @@ DESTINATION include/lemon COMPONENT headers FILES_MATCHING PATTERN "*.h") + +INSTALL( + FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h + DESTINATION include/lemon + COMPONENT headers)