File: FindIsoSpec%2B%2B.cmake

package info (click to toggle)
isospec 2.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 12,472 kB
  • sloc: cpp: 9,530; python: 2,095; makefile: 180; ansic: 100; sh: 88
file content (38 lines) | stat: -rw-r--r-- 909 bytes parent folder | download | duplicates (2)
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
33
34
35
36
37
38
# Copyright : Filippo Rusconi
# License : GPL-3.0+
# Authors : Filippo Rusconi

find_path(IsoSpec++_INCLUDE_DIRS IsoSpec++/isoSpec++.h
	PATHS /usr/local/include /usr/include
	PATH_SUFFIXES isospec++ libisospec++ IsoSpec++ ENV PATH)

find_library(IsoSpec++_LIBRARY NAMES isospec libisospec isospec++ libisospec++ libIsoSpec libIsoSpec++)

if(IsoSpec++_INCLUDE_DIRS AND IsoSpec++_LIBRARY)

	message(STATUS "Found IsoSpec++_LIBRARY: ${IsoSpec++_LIBRARY}")

	set(IsoSpec++_FOUND TRUE)

endif()

if(IsoSpec++_FOUND)

	if (NOT IsoSpec++_FIND_QUIETLY)

		message(STATUS "Found IsoSpec++_LIBRARY: ${IsoSpec++_LIBRARY}")

	endif()

	if(NOT TARGET IsoSpec++::IsoSpec++)

		add_library(IsoSpec++::IsoSpec++ UNKNOWN IMPORTED)

		set_target_properties(IsoSpec++::IsoSpec++ PROPERTIES
			IMPORTED_LOCATION             "${IsoSpec++_LIBRARY}"
			INTERFACE_INCLUDE_DIRECTORIES "${IsoSpec++_INCLUDE_DIRS}")

	endif()

endif()