Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
ftl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nicolas Pope
ftl
Commits
247275c5
Commit
247275c5
authored
5 years ago
by
Sebastian Hahta
Browse files
Options
Downloads
Patches
Plain Diff
remove LIBSGM_FOUND
parent
11e5913e
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!293
Move libsgm code to lib/libsgm
Pipeline
#23175
passed
5 years ago
Stage: all
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmake/FindLibSGM.cmake
+0
-41
0 additions, 41 deletions
cmake/FindLibSGM.cmake
components/operators/CMakeLists.txt
+2
-2
2 additions, 2 deletions
components/operators/CMakeLists.txt
with
2 additions
and
43 deletions
cmake/FindLibSGM.cmake
deleted
100644 → 0
+
0
−
41
View file @
11e5913e
###############################################################################
# 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
()
This diff is collapsed.
Click to expand it.
components/operators/CMakeLists.txt
+
2
−
2
View file @
247275c5
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment