File: FindMsgpack.cmake

package info (click to toggle)
neovim-qt 0.2.19-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,808 kB
  • sloc: cpp: 45,441; python: 234; makefile: 24; sh: 19; xml: 5
file content (17 lines) | stat: -rw-r--r-- 455 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
include(CheckLibraryExists)

find_path(MSGPACK_INCLUDE_DIR
    NAMES msgpack.h
)

find_library(MSGPACK_LIBRARY
    NAMES msgpack-c msgpack msgpackc libmsgpack.a libmsgpackc.a
)

mark_as_advanced(MSGPACK_INCLUDE_DIR MSGPACK_LIBRARY)
set(MSGPACK_LIBRARIES ${MSGPACK_LIBRARY})
set(MSGPACK_INCLUDE_DIRS ${MSGPACK_INCLUDE_DIR})

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Msgpack DEFAULT_MSG
	MSGPACK_LIBRARY MSGPACK_INCLUDE_DIR)