| 1 |
#.rst: |
| 2 |
# CVDConfig |
| 3 |
# -------- |
| 4 |
# |
| 5 |
# Find the native CVD includes and library. |
| 6 |
# |
| 7 |
# Result Variables |
| 8 |
# ^^^^^^^^^^^^^^^^ |
| 9 |
# |
| 10 |
# This module defines the following variables: |
| 11 |
# |
| 12 |
# :: |
| 13 |
# |
| 14 |
# CVD_INCLUDE_DIRS - where to find cvd/*.h. |
| 15 |
# CVD_LIBRARIES - List of libraries when using CVD. |
| 16 |
# CVD_FOUND - True if CVD found. |
| 17 |
|
| 18 |
|
| 19 |
include(${CMAKE_CURRENT_LIST_DIR}/CVDFindAllDeps.cmake) |
| 20 |
|
| 21 |
|
| 22 |
find_path(CVD_INCLUDE_DIR NAMES cvd/config.h PATH_SUFFIXES include) |
| 23 |
find_library(CVD_LIBRARY_RELEASE NAMES cvd PATH_SUFFIXES lib) |
| 24 |
find_library(CVD_LIBRARY_DEBUG NAMES cvd_debug PATH_SUFFIXES lib) |
| 25 |
|
| 26 |
select_library_configurations(CVD) |
| 27 |
mark_as_advanced(CVD_LIBRARY_RELEASE CVD_LIBRARY_DEBUG) |
| 28 |
|
| 29 |
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CVD REQUIRED_VARS CVD_LIBRARY CVD_INCLUDE_DIR) |
| 30 |
|
| 31 |
if(CVD_FOUND) |
| 32 |
set(CVD_INCLUDE_DIRS ${CVD_INCLUDE_DIR} ${CVD_DEP_INCLUDES_PUBLIC}) |
| 33 |
set(CVD_LIBRARIES ${CVD_LIBRARY} ${CVD_DEP_LIBS}) |
| 34 |
endif() |
| 35 |
|
| 36 |
mark_as_advanced(CVD_LIBRARY CVD_INCLUDE_DIR ) |