Warning, /frameworks/ktexteditor/cmake/FindEditorConfig.cmake is written in an unsupported language. File is not indexed.
0001 #.rest: 0002 # FindEditorConfig 0003 # -------------- 0004 # 0005 # Try to find EditorConfig on this system. 0006 # 0007 # This will define the following variables: 0008 # 0009 # ``EditorConfig_FOUND`` 0010 # True if inotify is available 0011 # ``EditorConfig_LIBRARIES`` 0012 # This has to be passed to target_link_libraries() 0013 # ``EditorConfig_INCLUDE_DIRS`` 0014 # This has to be passed to target_include_directories() 0015 0016 #============================================================================= 0017 # SPDX-FileCopyrightText: 2017 Christoph Cullmann <cullmann@kde.org> 0018 # 0019 # SPDX-License-Identifier: BSD-2-Clause 0020 #============================================================================= 0021 0022 find_path(EditorConfig_INCLUDE_DIRS editorconfig/editorconfig.h) 0023 0024 if(EditorConfig_INCLUDE_DIRS) 0025 find_library(EditorConfig_LIBRARIES NAMES editorconfig) 0026 include(FindPackageHandleStandardArgs) 0027 find_package_handle_standard_args(EditorConfig 0028 FOUND_VAR 0029 EditorConfig_FOUND 0030 REQUIRED_VARS 0031 EditorConfig_LIBRARIES 0032 EditorConfig_INCLUDE_DIRS 0033 ) 0034 mark_as_advanced(EditorConfig_LIBRARIES EditorConfig_INCLUDE_DIRS) 0035 include(FeatureSummary) 0036 set_package_properties(EditorConfig PROPERTIES 0037 URL "https://editorconfig.org/" 0038 DESCRIPTION "EditorConfig editor configuration file support." 0039 ) 0040 else() 0041 set(EditorConfig_FOUND FALSE) 0042 endif() 0043 0044 mark_as_advanced(EditorConfig_LIBRARIES EditorConfig_INCLUDE_DIRS)