blob: b007b6850cdab3fe081f79f4472e61bfd93e287d (
plain)
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
|
@PACKAGE_INIT@
# If tomlplusplus::tomlplusplus target is not defined it will be included
if(NOT TARGET tomlplusplus::tomlplusplus)
if (@compile_library@)
set(imported_type UNKNOWN)
else()
set(imported_type INTERFACE)
endif()
# Import tomlplusplus interface library
add_library(tomlplusplus::tomlplusplus ${imported_type} IMPORTED)
set_target_properties(tomlplusplus::tomlplusplus PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${PACKAGE_PREFIX_DIR}/@includedir@")
# Require C++17
target_compile_features(tomlplusplus::tomlplusplus INTERFACE cxx_std_17)
# Set the path to the installed library so that users can link to it
if (@compile_library@)
set_target_properties(tomlplusplus::tomlplusplus PROPERTIES
IMPORTED_LOCATION "${PACKAGE_PREFIX_DIR}/@libdir@/@lib_name@"
)
# compile_options not quoted on purpose
target_compile_options(tomlplusplus::tomlplusplus INTERFACE @compile_options@)
endif()
endif()
|