mirror of
https://github.com/marzer/tomlplusplus.git
synced 2024-11-02 02:26:28 +00:00
15 lines
468 B
CMake
15 lines
468 B
CMake
|
@PACKAGE_INIT@
|
||
|
|
||
|
# If tomlplusplus::tomlplusplus target is not defined it will be included
|
||
|
if(NOT TARGET tomlplusplus::tomlplusplus)
|
||
|
|
||
|
# Import tomlplusplus interface library
|
||
|
add_library(tomlplusplus::tomlplusplus INTERFACE IMPORTED)
|
||
|
set_target_properties(tomlplusplus::tomlplusplus PROPERTIES
|
||
|
INTERFACE_INCLUDE_DIRECTORIES "${PACKAGE_PREFIX_DIR}/include")
|
||
|
|
||
|
# Require C++17
|
||
|
target_compile_features(tomlplusplus::tomlplusplus INTERFACE cxx_std_17)
|
||
|
|
||
|
endif()
|