diff --git a/lemon/CMakeLists.txt b/lemon/CMakeLists.txt --- a/lemon/CMakeLists.txt +++ b/lemon/CMakeLists.txt @@ -25,28 +25,28 @@ INSTALL(FILES ${GLPK_BIN_DIR}/glpk.dll DESTINATION bin) INSTALL(FILES ${GLPK_BIN_DIR}/libltdl3.dll DESTINATION bin) INSTALL(FILES ${GLPK_BIN_DIR}/zlib1.dll DESTINATION bin) - ENDIF(WIN32) -ENDIF(LEMON_HAVE_GLPK) + ENDIF() +ENDIF() IF(LEMON_HAVE_CPLEX) SET(LEMON_SOURCES ${LEMON_SOURCES} cplex.cc) INCLUDE_DIRECTORIES(${CPLEX_INCLUDE_DIRS}) -ENDIF(LEMON_HAVE_CPLEX) +ENDIF() IF(LEMON_HAVE_CLP) SET(LEMON_SOURCES ${LEMON_SOURCES} clp.cc) INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS}) -ENDIF(LEMON_HAVE_CLP) +ENDIF() IF(LEMON_HAVE_CBC) SET(LEMON_SOURCES ${LEMON_SOURCES} cbc.cc) INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS}) -ENDIF(LEMON_HAVE_CBC) +ENDIF() ADD_LIBRARY(lemon ${LEMON_SOURCES}) IF(UNIX) SET_TARGET_PROPERTIES(lemon PROPERTIES OUTPUT_NAME emon) -ENDIF(UNIX) +ENDIF() INSTALL( TARGETS lemon