-
Notifications
You must be signed in to change notification settings - Fork 108
/
Copy pathreflectcpp-config.cmake.in
43 lines (33 loc) · 1.12 KB
/
reflectcpp-config.cmake.in
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
31
32
33
34
35
36
37
38
39
40
41
42
43
@PACKAGE_INIT@
set(REFLECTCPP_JSON @REFLECTCPP_JSON@)
set(REFLECTCPP_BSON @REFLECTCPP_BSON@)
set(REFLECTCPP_FLEXBUFFERS @REFLECTCPP_FLEXBUFFERS@)
set(REFLECTCPP_TOML @REFLECTCPP_TOML@)
set(REFLECTCPP_XML @REFLECTCPP_XML@)
set(REFLECTCPP_YAML @REFLECTCPP_YAML@)
set(REFLECTCPP_USE_BUNDLED_DEPENDENCIES @REFLECTCPP_USE_BUNDLED_DEPENDENCIES@)
if(REFLECTCPP_BSON OR REFLECTCPP_FLEXBUFFERS OR REFLECTCPP_XML OR REFLECTCPP_YAML OR (REFLECTCPP_JSON AND NOT REFLECTCPP_USE_BUNDLED_DEPENDENCIES))
include(CMakeFindDependencyMacro)
endif()
include(${CMAKE_CURRENT_LIST_DIR}/reflectcpp-exports.cmake)
if (REFLECTCPP_JSON AND NOT REFLECTCPP_USE_BUNDLED_DEPENDENCIES)
find_dependency(ctre)
find_dependency(yyjson)
endif()
if (REFLECTCPP_BSON)
find_dependency(bson-1.0)
endif ()
if (REFLECTCPP_FLEXBUFFERS)
find_dependency(flatbuffers)
endif ()
if (REFLECTCPP_TOML)
find_package(PkgConfig REQUIRED)
pkg_check_modules(tomlplusplus REQUIRED IMPORTED_TARGET tomlplusplus)
endif()
if (REFLECTCPP_XML)
find_dependency(pugixml)
endif ()
if (REFLECTCPP_YAML)
find_dependency(yaml-cpp)
endif ()
check_required_components(reflectcpp)