File: FindXBase.cmake

package info (click to toggle)
kdb 3.2.0-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,276 kB
  • sloc: cpp: 38,360; yacc: 940; python: 779; sh: 711; ansic: 440; lex: 367; xml: 182; sql: 51; makefile: 10
file content (28 lines) | stat: -rw-r--r-- 689 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
22
23
24
25
26
27
28
# - Try to find the XBase library
# Once done this will define
#
#  XBase_FOUND - system has XBase
#  XBase_INCLUDE_DIR - the XBase include directory
#  XBase_LIBRARIES - Link these to use XBase


if (XBase_INCLUDE_DIR AND XBase_LIBRARIES )

        # Already in cache
        set(XBASE_FOUND TRUE)

else ()

       find_path(XBase_INCLUDE_DIR NAMES xbase.h
        PATHS /usr/include/xbase /usr/local/include/xbase
       )

       find_library(XBase_LIBRARIES NAMES xbase )

       include(FindPackageHandleStandardArgs)
       find_package_handle_standard_args(XBase DEFAULT_MSG XBase_INCLUDE_DIR XBase_LIBRARIES )

       mark_as_advanced(XBase_INCLUDE_DIR XBase_LIBRARIES)

endif ()