Files
ortools-clone/cmake/ortoolsConfig.cmake.in
2019-05-17 11:25:19 +02:00

54 lines
1.2 KiB
CMake

## ortools CMake configuration file
set(@PACKAGE_PREFIX@_VERSION @PROJECT_VERSION@)
@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
# Kitware CMake provide a FindZLIB.cmake module
if(NOT ZLIB_FOUND)
find_dependency(ZLIB REQUIRED)
endif()
if(${CMAKE_VERSION} VERSION_LESS "3.9.6")
if(NOT absl_FOUND)
find_dependency(absl REQUIRED)
endif()
if(NOT gflags_FOUND)
find_dependency(gflags REQUIRED)
endif()
if(NOT glog_FOUND)
find_dependency(glog REQUIRED)
endif()
if(NOT Protobuf_FOUND AND NOT PROTOBUF_FOUND)
find_dependency(Protobuf REQUIRED)
endif()
if(NOT Clp_FOUND)
find_dependency(Clp REQUIRED)
endif()
if(NOT Cbc_FOUND)
find_dependency(Cbc REQUIRED)
endif()
else()
if(NOT absl_FOUND)
find_dependency(absl REQUIRED CONFIG)
endif()
if(NOT gflags_FOUND)
find_dependency(gflags REQUIRED CONFIG)
endif()
if(NOT glog_FOUND)
find_dependency(glog REQUIRED CONFIG)
endif()
if(NOT Protobuf_FOUND AND NOT PROTOBUF_FOUND)
find_dependency(Protobuf REQUIRED CONFIG)
endif()
if(NOT Clp_FOUND)
find_dependency(Clp REQUIRED CONFIG)
endif()
if(NOT Cbc_FOUND)
find_dependency(Cbc REQUIRED CONFIG)
endif()
endif()
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")