File: FindTslib.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 (20 lines) | stat: -rw-r--r-- 660 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# - Find tslib
#
#  TSLIB_INCLUDE_DIR - where to find tslib.h.
#  TSLIB_LIBRARIES   - List of libraries when using tslib.
#  TSLIB_FOUND       - True if tslib found.

if(TSLIB_INCLUDE_DIR)
    # Already in cache, be silent
    set(TSLIB_FIND_QUIETLY TRUE)
endif(TSLIB_INCLUDE_DIR)
find_path(TSLIB_INCLUDE_DIR tslib.h)
find_library(TSLIB_LIBRARY NAMES ts)
# Handle the QUIETLY and REQUIRED arguments and set TSLIB_FOUND
# to TRUE if all listed variables are TRUE.
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(TSLIB DEFAULT_MSG
    TSLIB_INCLUDE_DIR TSLIB_LIBRARY)

mark_as_advanced(TSLIB_INCLUDE_DIR)
mark_as_advanced(TSLIB_LIBRARY)