message: import caffe before libmolgrid
diff: @@ -6,6 +6,9 @@ set(USE_LMDB 0)
  set(USE_LEVELDB 0)
  set(USE_OPENCV 0)
  +set(CMAKE_CXX_STANDARD 14)
  +set(CMAKE_CUDA_STANDARD 14)
  +
  if("${CMAKE_BUILD_TYPE}" STREQUAL "")
  set(CMAKE_BUILD_TYPE Release)
  endif()
  @@ -21,6 +24,19 @@ if(NOT ${CUDA_cublas_device_LIBRARY}) #workaround for oldercmake/newer cuda issu
  set(CUDA_cublas_device_LIBRARY "")
  endif()
  +include(caffe/cmake/Utils.cmake)
  +include(caffe/cmake/Cuda.cmake)
  +
  +#our version of caffe needs to pull in headers from gnina and we'll use c++11
  +include_directories(.)
  +
  +add_subdirectory(caffe)
  +add_dependencies(caffe libmolgrid)
  +
  +include_directories(${CMAKE_BINARY_DIR}/caffe/include/)
  +include_directories(caffe/include)
  +add_subdirectory(gninasrc)
  +
  find_package(libmolgrid)
  if(NOT LIBMOLGRID_LIBRARY)
  message("libmolgrid will be fetched from git")
  @@ -45,23 +61,6 @@ set(OPENBABEL_LIBRARIES $<TARGET_FILE:openbabel>)
  set(OPENBABEL_INCLUDE_DIR ${OpenBabel3_INCLUDE_DIRS})
  include_directories(${OPENBABEL_INCLUDE_DIR})
  -include(caffe/cmake/Utils.cmake)
  -include(caffe/cmake/Cuda.cmake)
  -
  -#our version of caffe needs to pull in headers from gnina and we'll use c++11
  -include_directories(.)
  -
  -set(CMAKE_CXX_STANDARD 14)
  -set(CMAKE_CUDA_STANDARD 14)
  -
  -
  -add_subdirectory(caffe)
  -add_dependencies(caffe libmolgrid)
  -
  -include_directories(${CMAKE_BINARY_DIR}/caffe/include/)
  -include_directories(caffe/include)
  -add_subdirectory(gninasrc)
  -
  # enable testing
  include(CTest)
  enable_testing()
  