forked from abacusmodeling/abacus-develop
-
Notifications
You must be signed in to change notification settings - Fork 221
Expand file tree
/
Copy pathFindLibRI.cmake
More file actions
30 lines (27 loc) · 897 Bytes
/
FindLibRI.cmake
File metadata and controls
30 lines (27 loc) · 897 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
###############################################################################
# - Find LibRI
# Find the native LibRI files.
#
# LIBRI_FOUND - True if LibRI is found.
# LIBRI_DIR - Where to find LibRI files.
find_path(LIBRI_DIR
include/RI/version.h
HINTS ${LIBRI_DIR}
HINTS ${LibRI_DIR}
HINTS ${libri_DIR}
)
if(NOT LIBRI_DIR)
include(FetchContent)
FetchContent_Declare(
LibRI
URL https://codeload.github.com/abacusmodeling/LibRI/tar.gz/e6d78e0504693d2a464c72b87d3240ce183fd881
)
FetchContent_Populate(LibRI)
set(LIBRI_DIR ${libri_SOURCE_DIR})
endif()
# Handle the QUIET and REQUIRED arguments and
# set LIBRI_FOUND to TRUE if all variables are non-zero.
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(LibRI DEFAULT_MSG LIBRI_DIR)
# Copy the results to the output variables and target.
mark_as_advanced(LIBRI_DIR)