File tree 1 file changed +48
-0
lines changed
1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ #[=======================================================================[.rst:
2
+ FindOpenXR
3
+ ----------
4
+
5
+ A library to import and export various 3d-model-formats including
6
+ scene-post-processing to generate missing render data.
7
+
8
+ http://OpenXR.org/
9
+
10
+ IMPORTED Targets
11
+ ^^^^^^^^^^^^^^^^
12
+
13
+ This module defines :prop_tgt:`IMPORTED` target ``OpenXR::OpenXR``, if
14
+ yaml-cpp has been found.
15
+
16
+
17
+ Result Variables
18
+ ^^^^^^^^^^^^^^^^
19
+
20
+ This module defines the following variables::
21
+
22
+ OpenXR_FOUND - "True" if yaml-cpp was found
23
+ OpenXR_INCLUDE_DIRS - include directories for yaml-cpp
24
+ OpenXR_LIBRARIES - link against this library to use yaml-cpp
25
+
26
+ The module will also define three cache variables::
27
+
28
+ OpenXR_INCLUDE_DIR - the yaml-cpp include directory
29
+ OpenXR_LIBRARY - the path to the yaml-cpp library
30
+
31
+ #]=======================================================================]
32
+
33
+ find_path (OpenXR_INCLUDE_DIR NAMES openxr/openxr.h)
34
+ find_library (OpenXR_LIBRARY NAMES openxr_loader Debug/openxr_loader)
35
+
36
+ set (OpenXR_INCLUDE_DIRS ${OpenXR_INCLUDE_DIR} )
37
+ set (OpenXR_LIBRARIES ${OpenXR_LIBRARY} )
38
+
39
+ find_package_handle_standard_args(OpenXR DEFAULT_MSG OpenXR_INCLUDE_DIR OpenXR_LIBRARY)
40
+
41
+ mark_as_advanced (OpenXR_INCLUDE_DIR OpenXR_LIBRARY)
42
+
43
+ if (OpenXR_FOUND AND NOT TARGET OpenXR::OpenXR)
44
+ add_library (OpenXR::OpenXR UNKNOWN IMPORTED )
45
+ set_target_properties (
46
+ OpenXR::OpenXR PROPERTIES IMPORTED_LOCATION "${OpenXR_LIBRARIES} "
47
+ INTERFACE_INCLUDE_DIRECTORIES "${OpenXR_INCLUDE_DIRS} " )
48
+ endif ()
You can’t perform that action at this time.
0 commit comments