-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFindefusion.cmake
More file actions
31 lines (26 loc) · 1003 Bytes
/
Copy pathFindefusion.cmake
File metadata and controls
31 lines (26 loc) · 1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
###############################################################################
# Find efusion
#
# This sets the following variables:
# EFUSION_FOUND - True if EFUSION was found.
# EFUSION_INCLUDE_DIRS - Directories containing the EFUSION include files.
# EFUSION_LIBRARIES - Libraries needed to use EFUSION.
find_path(EFUSION_INCLUDE_DIR ElasticFusion.h
PATHS
${CMAKE_CURRENT_SOURCE_DIR}//Core/src
PATH_SUFFIXES Core
)
find_library(EFUSION_LIBRARY
NAMES libefusion.so
PATHS
${CMAKE_CURRENT_SOURCE_DIR}/Core/build
${CMAKE_CURRENT_SOURCE_DIR}/Core/src/build
PATH_SUFFIXES ${EFUSION_PATH_SUFFIXES}
)
set(EFUSION_INCLUDE_DIRS ${EFUSION_INCLUDE_DIR})
set(EFUSION_LIBRARIES ${EFUSION_LIBRARY})
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(EFUSION DEFAULT_MSG EFUSION_LIBRARY EFUSION_INCLUDE_DIR)
if(NOT WIN32)
mark_as_advanced(EFUSION_LIBRARY EFUSION_INCLUDE_DIR)
endif()