Skip to content
Snippets Groups Projects
Commit 247275c5 authored by Sebastian Hahta's avatar Sebastian Hahta
Browse files

remove LIBSGM_FOUND

parent 11e5913e
Branches
Tags
1 merge request!293Move libsgm code to lib/libsgm
Pipeline #23175 passed
###############################################################################
# Find LibSGM
#
# This sets the following variables:
# LIBSGM_FOUND - True if LIBSGM was found.
# LIBSGM_INCLUDE_DIRS - Directories containing the LIBSGM include files.
# LIBSGM_LIBRARY - Libraries needed to use LIBSGM.
if(WIN32)
find_path(libSGM_DIR libSGM PATHS "C:/Program Files" "C:/Program Files (x86)")
set(libSGM_DIR ${libSGM_DIR}/libSGM)
else()
set(glog_DIR "")
endif()
# Find lib
set(LIBSGM_FOUND FALSE CACHE BOOL "" FORCE)
find_library(LIBSGM_LIBRARY
NAMES sgm libsgm
PATHS ${libSGM_DIR}
PATH_SUFFIXES lib/
)
# Find include
find_path(LIBSGM_INCLUDE_DIRS
NAMES libsgm.h
PATHS ${libSGM_DIR}
PATH_SUFFIXES include/
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(LibSGM DEFAULT_MSG LIBSGM_LIBRARY LIBSGM_INCLUDE_DIRS)
mark_as_advanced(LIBSGM_FOUND)
if(LIBSGM_FOUND)
include_directories(${LIBSGM_INCLUDE_DIRS})
set(LIBSGM_FOUND TRUE CACHE BOOL "" FORCE)
set(LIBSGM_LIBRARIES ${LIBSGM_LIBRARY})
message(STATUS "Found libSGM")
endif()
......@@ -35,9 +35,9 @@ set(OPERSRC
src/gt_analysis.cu
)
if (LIBSGM_FOUND)
if (HAVE_LIBSGM)
list(APPEND OPERSRC src/disparity/fixstars_sgm.cpp)
endif (LIBSGM_FOUND)
endif (HAVE_LIBSGM)
if (HAVE_OPTFLOW)
list(APPEND OPERSRC
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment