File: FindSvgalib.cmake

package info (click to toggle)
allegro4.4 2:4.4.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 20,744 kB
  • sloc: ansic: 164,458; asm: 17,620; cpp: 3,848; objc: 1,687; sh: 1,107; python: 676; pascal: 179; makefile: 55; perl: 29; lisp: 1
file content (21 lines) | stat: -rw-r--r-- 696 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# - Find svgalib
#
#  SVGALIB_INCLUDE_DIR - where to find vga.h, etc.
#  SVGALIB_LIBRARIES   - List of libraries when using svgalib.
#  SVGALIB_FOUND       - True if vorbis found.

if(SVGALIB_INCLUDE_DIR)
    # Already in cache, be silent
    set(SVGALIB_FIND_QUIETLY TRUE)
endif(SVGALIB_INCLUDE_DIR)
find_path(SVGALIB_INCLUDE_DIR vga.h)
find_library(SVGALIB_LIBRARY NAMES vga)
# Handle the QUIETLY and REQUIRED arguments and set SVGALIB_FOUND
# to TRUE if all listed variables are TRUE.
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(SVGALIB DEFAULT_MSG
    SVGALIB_INCLUDE_DIR SVGALIB_LIBRARY)

mark_as_advanced(SVGALIB_INCLUDE_DIR)
mark_as_advanced(SVGALIB_LIBRARY)