File: FindLibedit.cmake

package info (click to toggle)
ycm-cmake-modules 0.13.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,640 kB
  • sloc: python: 319; sh: 181; makefile: 22
file content (40 lines) | stat: -rw-r--r-- 1,746 bytes parent folder | download
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
30
31
32
33
34
35
36
37
38
39
40
# SPDX-FileCopyrightText: 2012-2021 Istituto Italiano di Tecnologia (IIT)
# SPDX-License-Identifier: BSD-3-Clause

#[=======================================================================[.rst:
FindLibedit
------------

Try to find NetBSD Editline library (libedit), a Berkeley-style licensed
command line editor library provides generic line editing, history, and
tokenization functions, similar to those found in GNU Readline.
Once done this will define the following variables::

 Libedit_FOUND         - System has Editline library
 Libedit_INCLUDE_DIRS  - Editline library include directory
 Libedit_LIBRARIES     - Editline library libraries
 Libedit_DEFINITIONS   - Additional compiler flags for Editline library
 Libedit_VERSION       - Editline library version
 Libedit_MAJOR_VERSION - Editline library major version
 Libedit_MINOR_VERSION - Editline library minor version

Environment variables used to locate the Editline library::

 READLINE_DIR - Libedit root directory

Cached variables used to locate the NetBSD Editline library::

 Libedit_INCLUDE_DIR - the Libedit include directory
 Libedit_LIBRARY_RELEASE - NetBSD Editline library (release)
 Libedit_LIBRARY_DEBUG - NetBSD Editline library  (debug)
#]=======================================================================]

include(StandardFindModule)
standard_find_module(Libedit libedit
                     TARGET Libedit::libedit)

# Set package properties if FeatureSummary was included
if(COMMAND set_package_properties)
    set_package_properties(Libedit PROPERTIES DESCRIPTION "A command line editor library provides generic line editing, history, and tokenization functions"
                                              URL "http://thrysoee.dk/editline/")
endif()