cmake/FindCOIN.cmake
changeset 913 64260c0f58eb
parent 627 20dac2104519
child 919 1f1328691a07
equal deleted inserted replaced
1:85dca3db5aa5 2:21f53dfb76e7
     1 SET(COIN_ROOT_DIR "" CACHE PATH "COIN root directory")
     1 SET(COIN_ROOT_DIR "" CACHE PATH "COIN root directory")
     2 
     2 
     3 FIND_PATH(COIN_INCLUDE_DIR coin/CoinUtilsConfig.h
     3 FIND_PATH(COIN_INCLUDE_DIR coin/CoinUtilsConfig.h
     4   PATHS ${COIN_ROOT_DIR}/include)
     4   HINTS ${COIN_ROOT_DIR}/include
     5 
     5 )
     6 FIND_LIBRARY(COIN_CBC_LIBRARY libCbc
     6 FIND_LIBRARY(COIN_CBC_LIBRARY
     7   PATHS ${COIN_ROOT_DIR}/lib)
     7   NAMES Cbc libCbc
     8 FIND_LIBRARY(COIN_CBC_SOLVER_LIBRARY libCbcSolver
     8   HINTS ${COIN_ROOT_DIR}/lib
     9   PATHS ${COIN_ROOT_DIR}/lib)
     9 )
    10 FIND_LIBRARY(COIN_CGL_LIBRARY libCgl
    10 FIND_LIBRARY(COIN_CBC_SOLVER_LIBRARY
    11   PATHS ${COIN_ROOT_DIR}/lib)
    11   NAMES CbcSolver libCbcSolver
    12 FIND_LIBRARY(COIN_CLP_LIBRARY libClp
    12   HINTS ${COIN_ROOT_DIR}/lib
    13   PATHS ${COIN_ROOT_DIR}/lib)
    13 )
    14 FIND_LIBRARY(COIN_COIN_UTILS_LIBRARY libCoinUtils
    14 FIND_LIBRARY(COIN_CGL_LIBRARY
    15   PATHS ${COIN_ROOT_DIR}/lib)
    15   NAMES Cgl libCgl
    16 FIND_LIBRARY(COIN_OSI_LIBRARY libOsi
    16   HINTS ${COIN_ROOT_DIR}/lib
    17   PATHS ${COIN_ROOT_DIR}/lib)
    17 )
    18 FIND_LIBRARY(COIN_OSI_CBC_LIBRARY libOsiCbc
    18 FIND_LIBRARY(COIN_CLP_LIBRARY
    19   PATHS ${COIN_ROOT_DIR}/lib)
    19   NAMES Clp libClp
    20 FIND_LIBRARY(COIN_OSI_CLP_LIBRARY libOsiClp
    20   HINTS ${COIN_ROOT_DIR}/lib
    21   PATHS ${COIN_ROOT_DIR}/lib)
    21 )
    22 FIND_LIBRARY(COIN_OSI_VOL_LIBRARY libOsiVol
    22 FIND_LIBRARY(COIN_COIN_UTILS_LIBRARY
    23   PATHS ${COIN_ROOT_DIR}/lib)
    23   NAMES CoinUtils libCoinUtils
    24 FIND_LIBRARY(COIN_VOL_LIBRARY libVol
    24   HINTS ${COIN_ROOT_DIR}/lib
    25   PATHS ${COIN_ROOT_DIR}/lib)
    25 )
       
    26 FIND_LIBRARY(COIN_OSI_LIBRARY
       
    27   NAMES Osi libOsi
       
    28   HINTS ${COIN_ROOT_DIR}/lib
       
    29 )
       
    30 FIND_LIBRARY(COIN_OSI_CBC_LIBRARY
       
    31   NAMES OsiCbc libOsiCbc
       
    32   HINTS ${COIN_ROOT_DIR}/lib
       
    33 )
       
    34 FIND_LIBRARY(COIN_OSI_CLP_LIBRARY
       
    35   NAMES OsiClp libOsiClp
       
    36   HINTS ${COIN_ROOT_DIR}/lib
       
    37 )
       
    38 FIND_LIBRARY(COIN_OSI_VOL_LIBRARY
       
    39   NAMES OsiVol libOsiVol
       
    40   HINTS ${COIN_ROOT_DIR}/lib
       
    41 )
       
    42 FIND_LIBRARY(COIN_VOL_LIBRARY
       
    43   NAMES Vol libVol
       
    44   HINTS ${COIN_ROOT_DIR}/lib
       
    45 )
    26 
    46 
    27 INCLUDE(FindPackageHandleStandardArgs)
    47 INCLUDE(FindPackageHandleStandardArgs)
    28 FIND_PACKAGE_HANDLE_STANDARD_ARGS(COIN DEFAULT_MSG
    48 FIND_PACKAGE_HANDLE_STANDARD_ARGS(COIN DEFAULT_MSG
    29   COIN_INCLUDE_DIR
    49   COIN_INCLUDE_DIR
    30   COIN_CBC_LIBRARY
    50   COIN_CBC_LIBRARY