File: FindVirtuoseVPP.cmake

package info (click to toggle)
freespace2 24.0.2%2Brepack-1
  • links: PTS, VCS
  • area: non-free
  • in suites: trixie
  • size: 43,188 kB
  • sloc: cpp: 583,107; ansic: 21,729; python: 1,174; sh: 464; makefile: 248; xml: 181
file content (49 lines) | stat: -rw-r--r-- 1,445 bytes parent folder | download | duplicates (7)
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
39
40
41
42
43
44
45
46
47
48
49
# - try to find Haption VirtuoseAPI C++ wrapper include files
#
# Use of this header depends on the VirtuoseAPI, so we search for that too.
#
#  VIRTUOSEVPP_INCLUDE_DIRS, where to find headers
#  VIRTUOSEVPP_LIBRARIES, the libraries to link against
#  VIRTUOSEVPP_FOUND, If false, do not try to use this library
#  VIRTUOSEVPP_RUNTIME_LIBRARY_DIRS, path to DLL/SO for runtime use.
#  VIRTUOSEAPI_RUNTIME_LIBRARIES, runtime libraries you might want to install

set(VIRTUOSEVPP_ROOT_DIR
	"${VIRTUOSEVPP_ROOT_DIR}"
	CACHE
	PATH
	"Path to search for VirtuoseAPI VPP wrapper")

find_package(VirtuoseAPI)

find_path(VIRTUOSEVPP_INCLUDE_DIR
	vpp.h
	PATHS
	${_dirs}
	HINTS
	"${VIRTUOSEVPP_ROOT_DIR}")

# handle the QUIETLY and REQUIRED arguments and set xxx_FOUND to TRUE if
# all listed variables are TRUE
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(VirtuoseVPP
	DEFAULT_MSG
	VIRTUOSEVPP_INCLUDE_DIR
	VIRTUOSEAPI_LIBRARY
	VIRTUOSEAPI_RUNTIME_LIBRARIES
	VIRTUOSEAPI_RUNTIME_LIBRARY_DIRS
	VIRTUOSEAPI_INCLUDE_DIR)

if(VIRTUOSEVPP_FOUND)
	set(VIRTUOSEVPP_LIBRARIES "${VIRTUOSEAPI_LIBRARY}")
	set(VIRTUOSEVPP_INCLUDE_DIRS
		"${VIRTUOSEAPI_INCLUDE_DIR}"
		"${VIRTUOSEVPP_INCLUDE_DIR}")
	set(VIRTUOSEVPP_RUNTIME_LIBRARIES "${VIRTUOSEAPI_RUNTIME_LIBRARIES}")
	set(VIRTUOSEVPP_RUNTIME_LIBRARY_DIRS
		"${VIRTUOSEAPI_RUNTIME_LIBRARY_DIRS}")

	mark_as_advanced(VIRTUOSEVPP_ROOT_DIR)
endif()

mark_as_advanced(VIRTUOSEVPP_INCLUDE_DIR)