This repository has been archived on 2024-03-23. You can view files and clone it, but cannot push or open issues or pull requests.
2023-11-02 17:53:40 +00:00
|
|
|
# SPDX-FileCopyrightText: 2023 Alexandre Bouvier <contact@amb.tf>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
|
2024-01-02 08:13:34 +00:00
|
|
|
find_package(SimpleIni QUIET CONFIG)
|
|
|
|
if (SimpleIni_CONSIDERED_CONFIGS)
|
|
|
|
find_package_handle_standard_args(SimpleIni CONFIG_MODE)
|
|
|
|
else()
|
|
|
|
find_package(PkgConfig QUIET)
|
|
|
|
pkg_search_module(SIMPLEINI QUIET IMPORTED_TARGET simpleini)
|
|
|
|
find_package_handle_standard_args(SimpleIni
|
|
|
|
REQUIRED_VARS SIMPLEINI_INCLUDEDIR
|
|
|
|
VERSION_VAR SIMPLEINI_VERSION
|
2023-11-02 17:53:40 +00:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2024-01-02 08:13:34 +00:00
|
|
|
if (SimpleIni_FOUND AND NOT TARGET SimpleIni::SimpleIni)
|
|
|
|
add_library(SimpleIni::SimpleIni ALIAS PkgConfig::SIMPLEINI)
|
|
|
|
endif()
|