mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
1e37703a74
Cmake should already be able to find everything on its own.
17 lines
562 B
CMake
17 lines
562 B
CMake
find_path(LIBTERMKEY_INCLUDE_DIR termkey.h)
|
|
|
|
list(APPEND LIBTERMKEY_NAMES termkey)
|
|
|
|
find_library(LIBTERMKEY_LIBRARY NAMES ${LIBTERMKEY_NAMES})
|
|
|
|
set(LIBTERMKEY_LIBRARIES ${LIBTERMKEY_LIBRARY})
|
|
set(LIBTERMKEY_INCLUDE_DIRS ${LIBTERMKEY_INCLUDE_DIR})
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
# handle the QUIETLY and REQUIRED arguments and set LIBTERMKEY_FOUND to TRUE
|
|
# if all listed variables are TRUE
|
|
find_package_handle_standard_args(LibTermkey DEFAULT_MSG
|
|
LIBTERMKEY_LIBRARY LIBTERMKEY_INCLUDE_DIR)
|
|
|
|
mark_as_advanced(LIBTERMKEY_INCLUDE_DIR LIBTERMKEY_LIBRARY)
|