File: Findliblms7compact.cmake

package info (click to toggle)
libxtrx 0.0.1%2Bgit20191219.98458ce-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 544 kB
  • sloc: ansic: 6,598; cpp: 1,857; makefile: 9
file content (32 lines) | stat: -rw-r--r-- 1,016 bytes parent folder | download | duplicates (3)
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
29
30
31
32

if(NOT LIBLMS7COMPACT_FOUND)
	if(NOT WIN32)
		include(FindPkgConfig)
		pkg_check_modules (LIBLMS7COMPACT_PKG LIBLMS7COMPACT)
	endif(NOT WIN32)

	find_path(LIBLMS7COMPACT_INCLUDE_DIRS NAMES liblms7002m.h
		PATHS
		${LIBLMS7COMPACT_PKG_INCLUDE_DIRS}
		/usr/include/
		/usr/local/include/
		)

	find_library(LIBLMS7COMPACT_LIBRARIES NAMES lms7compact
		PATHS
		${LIBLMS7COMPACT_PKG_LIBRARY_DIRS}
		/usr/lib
		/usr/local/lib
		)

	if(LIBLMS7COMPACT_INCLUDE_DIRS AND LIBLMS7COMPACT_LIBRARIES)
		set(LIBLMS7COMPACT_FOUND TRUE CACHE INTERNAL "LIBLMS7COMPACT found")
		message(STATUS "Found liblms7mcompact: ${LIBLMS7COMPACT_INCLUDE_DIRS}, ${LIBLMS7COMPACT_LIBRARIES}")
	else(LIBLMS7COMPACT_INCLUDE_DIRS AND LIBLMS7COMPACT_LIBRARIES)
		set(LIBLMS7COMPACT_FOUND FALSE CACHE INTERNAL "LIBLMS7COMPACT found")
		message(STATUS "liblms7compact not found.")
	endif(LIBLMS7COMPACT_INCLUDE_DIRS AND LIBLMS7COMPACT_LIBRARIES)

	mark_as_advanced(LIBLMS7COMPACT_LIBRARIES LIBLMS7COMPACT_INCLUDE_DIRS)

endif(NOT LIBLMS7COMPACT_FOUND)