Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Courses
CA-Framework-2022
Commits
a0452bad
Commit
a0452bad
authored
Feb 20, 2020
by
Yuwei Xiao
Browse files
cmake
parent
ca7443d7
Changes
1
Show whitespace changes
Inline
Side-by-side
cmake/FindLIBIGL.cmake
0 → 100644
View file @
a0452bad
# - Try to find the LIBIGL library
# Once done this will define
#
# LIBIGL_FOUND - system has LIBIGL
# LIBIGL_INCLUDE_DIR - **the** LIBIGL include directory
if
(
LIBIGL_FOUND
)
return
()
endif
()
find_path
(
LIBIGL_INCLUDE_DIR igl/readOBJ.h
HINTS
ENV LIBIGL
ENV LIBIGLROOT
ENV LIBIGL_ROOT
ENV LIBIGL_DIR
PATHS
${
CMAKE_SOURCE_DIR
}
/../..
${
CMAKE_SOURCE_DIR
}
/..
${
CMAKE_SOURCE_DIR
}
${
CMAKE_SOURCE_DIR
}
/libigl
${
CMAKE_SOURCE_DIR
}
/../libigl
${
CMAKE_SOURCE_DIR
}
/../../libigl
${
CMAKE_SOURCE_DIR
}
/../../lib/libigl
${
CMAKE_SOURCE_DIR
}
/lib/libigl
${
CMAKE_SOURCE_DIR
}
/../lib/libigl
/usr
/usr/local
/usr/local/igl/libigl
PATH_SUFFIXES include
)
message
(
${
LIBIGL_INCLUDE_DIR
}
)
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
LIBIGL
"
\n
libigl not found --- You can download it using:
\n\t
git clone --recursive https://github.com/libigl/libigl.git
${
CMAKE_SOURCE_DIR
}
/../libigl"
LIBIGL_INCLUDE_DIR
)
mark_as_advanced
(
LIBIGL_INCLUDE_DIR
)
list
(
APPEND CMAKE_MODULE_PATH
"
${
LIBIGL_INCLUDE_DIR
}
/../cmake"
)
message
(
${
CMAKE_MODULE_PATH
}
)
include
(
libigl
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment