File: FindXBase.cmake

package info (click to toggle)
calligra 1:2.8.5+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 397,516 kB
  • ctags: 185,064
  • sloc: cpp: 1,505,875; python: 45,987; ansic: 28,421; xml: 26,472; sh: 23,986; java: 18,214; objc: 3,965; makefile: 2,816; perl: 2,792; yacc: 2,601; lex: 1,410; sql: 903; ruby: 737; asm: 236; lisp: 121
file content (28 lines) | stat: -rw-r--r-- 757 bytes parent folder | download
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 (XBase_INCLUDE_DIR AND XBase_LIBRARIES)

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

       FIND_LIBRARY(XBase_LIBRARIES NAMES xbase64 )

       include(FindPackageHandleStandardArgs)
       FIND_PACKAGE_HANDLE_STANDARD_ARGS(XBase DEFAULT_MSG XBase_INCLUDE_DIR XBase_LIBRARIES )

       MARK_AS_ADVANCED(XBase_INCLUDE_DIR XBase_LIBRARIES)

ENDIF (XBase_INCLUDE_DIR AND XBase_LIBRARIES )