diff options
author | Alexandre Bouvier <contact@amb.tf> | 2023-11-02 18:53:40 +0100 |
---|---|---|
committer | Alexandre Bouvier <contact@amb.tf> | 2023-11-26 03:45:10 +0100 |
commit | fe3702223f0d5c2bd36a3d4d98c423157f422c10 (patch) | |
tree | 4ed2177c84a560455cbc7dcc78e17dae476b2877 /CMakeModules/FindSimpleIni.cmake | |
parent | Merge pull request #12166 from german77/redmagic (diff) | |
download | yuzu-fe3702223f0d5c2bd36a3d4d98c423157f422c10.tar yuzu-fe3702223f0d5c2bd36a3d4d98c423157f422c10.tar.gz yuzu-fe3702223f0d5c2bd36a3d4d98c423157f422c10.tar.bz2 yuzu-fe3702223f0d5c2bd36a3d4d98c423157f422c10.tar.lz yuzu-fe3702223f0d5c2bd36a3d4d98c423157f422c10.tar.xz yuzu-fe3702223f0d5c2bd36a3d4d98c423157f422c10.tar.zst yuzu-fe3702223f0d5c2bd36a3d4d98c423157f422c10.zip |
Diffstat (limited to '')
-rw-r--r-- | CMakeModules/FindSimpleIni.cmake | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/CMakeModules/FindSimpleIni.cmake b/CMakeModules/FindSimpleIni.cmake new file mode 100644 index 000000000..ce75d7690 --- /dev/null +++ b/CMakeModules/FindSimpleIni.cmake @@ -0,0 +1,19 @@ +# SPDX-FileCopyrightText: 2023 Alexandre Bouvier <contact@amb.tf> +# +# SPDX-License-Identifier: GPL-3.0-or-later + +find_path(SimpleIni_INCLUDE_DIR SimpleIni.h) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(SimpleIni + REQUIRED_VARS SimpleIni_INCLUDE_DIR +) + +if (SimpleIni_FOUND AND NOT TARGET SimpleIni::SimpleIni) + add_library(SimpleIni::SimpleIni INTERFACE IMPORTED) + set_target_properties(SimpleIni::SimpleIni PROPERTIES + INTERFACE_INCLUDE_DIRECTORIES "${SimpleIni_INCLUDE_DIR}" + ) +endif() + +mark_as_advanced(SimpleIni_INCLUDE_DIR) |