Commit d698bab9 authored by Wieland Morgenstern's avatar Wieland Morgenstern

use CONAN_LIBS for conan installed packages

parent 7090dc1d
......@@ -121,10 +121,11 @@ if(WIN32)
conan_add_remote(NAME bincrafters URL https://api.bintray.com/conan/bincrafters/public-conan)
conan_cmake_run(REQUIRES
eigen/3.3.7@conan/stable
libpng/1.6.37@bincrafters/stable
glew/2.1.0@bincrafters/stable
glfw/3.3@bincrafters/stable
#ceres-solver/1.12.0@jmdaly/testing
# ceres-solver/1.12.0@jmdaly/testing
BUILD missing
)
......
......@@ -20,7 +20,11 @@ endif (NOT CUDA_FOUND)
# TODO: extract find_library + find_package
if (WINDOWS)
find_library(GLEW NAMES glew32s PATHS ${CMAKE_EXTERNAL_DEPS}/lib/GL NO_DEFAULT_PATH)
if(WIN_CHOCO)
find_library(GLEW NAMES ${CONAN_LIBS})
else()
find_library(GLEW NAMES glew32s PATHS ${CMAKE_EXTERNAL_DEPS}/lib/GL NO_DEFAULT_PATH)
endif()
include_directories(${OPENGL_INCLUDE_DIRS})
include_directories(${OPENCV_INCLUDE_DIRS})
find_library(CUDA cuda PATHS "${CUDA_TOOLKIT_ROOT_DIR}/lib/x64" NO_DEFAULT_PATH)
......
......@@ -7,7 +7,7 @@ elseif(ANDROID)
find_library(PNG_LIBRARY png PATHS ${CMAKE_EXTERNAL_LIB} NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
elseif(WINDOWS)
if (WIN_CHOCO)
set(PNG_LIBRARY CONAN_PKG::libpng)
find_library(PNG_LIBRARY png NAMES ${CONAN_LIBS})
else()
find_debug_and_optimized_library(PNG_LIBRARY "libpng/debug" "libpng" "libpng/release" "libpng")
endif()
......
......@@ -17,7 +17,7 @@ elseif(APPLE)
endif()
elseif(WINDOWS)
if(WIN_CHOCO)
set(GLFW CONAN_PKG::glfw)
set(GLFW ${CONAN_LIBS})
else()
find_library(GLFW glfw3 HINTS "${CMAKE_EXTERNAL_LIB}/glfw" REQUIRED)
endif()
......
......@@ -3,8 +3,14 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(HID hid)
find_debug_and_optimized_library(CERES_LIBS "ceres" "ceres-debug" "ceres" "ceres")
find_library(GLOG NAMES "libglog" PATHS "${CMAKE_EXTERNAL_LIB}/glog")
if(WIN_CHOCO)
set(CERES_LIBS ${CONAN_LIBS})
set(GLOG ${CONAN_LIBS})
else()
find_debug_and_optimized_library(CERES_LIBS "ceres" "ceres-debug" "ceres" "ceres")
find_library(GLOG NAMES "libglog" PATHS "${CMAKE_EXTERNAL_LIB}/glog")
endif()
set(EIGEN3_INCLUDE_DIRS ${CMAKE_EXTERNAL_DEPS}/lib/eigen)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment