Commit fa25a70e authored by Wieland Morgenstern's avatar Wieland Morgenstern

use conan CMake variables

parent d698bab9
......@@ -130,6 +130,13 @@ if(WIN32)
)
message(STATUS "CONAN_LIBS: ${CONAN_LIBS}")
message(STATUS "CONAN_LIBS_LIBPNG: ${CONAN_LIBS_LIBPNG}")
message(STATUS "CONAN_LIBS_GLEW: ${CONAN_LIBS_GLEW}")
message(STATUS "CONAN_LIBS_GLFW: ${CONAN_LIBS_GLFW}")
message(STATUS "CONAN_INCLUDE_DIRS: ${CONAN_INCLUDE_DIRS}")
message(STATUS "CONAN_INCLUDE_DIRS_EIGEN: ${CONAN_INCLUDE_DIRS_EIGEN}")
endif()
......
......@@ -21,7 +21,7 @@ endif (NOT CUDA_FOUND)
if (WINDOWS)
if(WIN_CHOCO)
find_library(GLEW NAMES ${CONAN_LIBS})
find_library(GLEW NAMES ${CONAN_LIBS_GLEW})
else()
find_library(GLEW NAMES glew32s PATHS ${CMAKE_EXTERNAL_DEPS}/lib/GL NO_DEFAULT_PATH)
endif()
......
......@@ -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)
find_library(PNG_LIBRARY png NAMES ${CONAN_LIBS})
set(PNG_LIBRARY ${CONAN_LIBS_LIBPNG})
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_LIBS})
set(GLFW ${CONAN_LIBS_GLFW})
else()
find_library(GLFW glfw3 HINTS "${CMAKE_EXTERNAL_LIB}/glfw" REQUIRED)
endif()
......
......@@ -4,13 +4,23 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(HID hid)
if(WIN_CHOCO)
set(CERES_LIBS ${CONAN_LIBS})
set(GLOG ${CONAN_LIBS})
set(CERES_LIBS CONAN_LIBS_TODO_FIND_CERES)
set(GLOG CONAN_LIBS_TODO_GLOG_CERES_DEP)
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)
if(WIN_CHOCO)
set(EIGEN3_INCLUDE_DIRS ${CONAN_INCLUDE_DIRS_EIGEN})
else()
set(EIGEN3_INCLUDE_DIRS ${CMAKE_EXTERNAL_DEPS}/lib/eigen)
endif()
if(WIN_CHOCO)
set(VS_LIB_SYSTEM_INCLUDES
${VS_LIB_SYSTEM_INCLUDES}
${CONAN_INCLUDE_DIRS}
)
endif()
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