File: FindENet.cmake

package info (click to toggle)
supertuxkart 0.8.1-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 342,528 kB
  • ctags: 49,592
  • sloc: cpp: 293,704; ansic: 91,041; xml: 21,795; sh: 14,004; makefile: 1,857; awk: 609; objc: 452; python: 371; asm: 284; perl: 143
file content (22 lines) | stat: -rw-r--r-- 614 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# - Find ENet
# Find the ENet includes and libraries
#
# Following variables are provided:
# ENET_FOUND
#     True if ENet has been found
# ENET_INCLUDE_DIR
#     The include directories of ENet
# ENET_LIBRARIES
#     ENet library list


find_path(ENET_INCLUDE_DIR enet/enet.h /usr/include)
find_library(ENET_LIBRARY NAMES enet PATHS /usr/lib)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(ENet DEFAULT_MSG ENET_INCLUDE_DIR ENET_LIBRARY)

# Publish variables
set(ENET_INCLUDE_DIRS ${ENET_INCLUDE_DIR})
set(ENET_LIBRARIES ${ENET_LIBRARY})
mark_as_advanced(ENET_INCLUDE_DIR ENET_LIBRARY)