1 |
# Try to find SparseHash |
2 |
# Once done, this will define |
3 |
# |
4 |
# SPARSEHASH_FOUND - system has SparseHash |
5 |
# SPARSEHASH_INCLUDE_DIR - the SparseHash include directories |
6 |
|
7 |
if(SPARSEHASH_INCLUDE_DIR) |
8 |
set(SPARSEHASH_FIND_QUIETLY TRUE) |
9 |
endif(SPARSEHASH_INCLUDE_DIR) |
10 |
|
11 |
find_path(SPARSEHASH_INCLUDE_DIR google/sparsehash/sparsehashtable.h) |
12 |
|
13 |
# handle the QUIETLY and REQUIRED arguments and set SPARSEHASH_FOUND to TRUE if |
14 |
# all listed variables are TRUE |
15 |
include(FindPackageHandleStandardArgs) |
16 |
find_package_handle_standard_args(SparseHash DEFAULT_MSG SPARSEHASH_INCLUDE_DIR) |
17 |
|
18 |
mark_as_advanced(SPARSEHASH_INCLUDE_DIR) |