-
Notifications
You must be signed in to change notification settings - Fork 9
/
xvegaConfig.cmake.in
37 lines (30 loc) · 1.39 KB
/
xvegaConfig.cmake.in
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
# Copyright (c) 2020, QuantStack and XVega Contributors
#
# Distributed under the terms of the BSD 3-Clause License.
#
# The full license is in the file LICENSE, distributed with this software.
# xvega cmake module
# This module sets the following variables in your project::
#
# xvega_FOUND - true if xvega found on the system
# xvega_INCLUDE_DIR - the directory containing xvega headers
# xvega_LIBRARY - empty
@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
find_dependency(nlohmann_json @nlohmann_json_VERSION@ EXACT)
find_dependency(xproperty @xproperty_REQUIRED_VERSION@)
if(NOT TARGET @PROJECT_NAME@)
include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")
if (TARGET xvega AND xvega-static)
get_target_property(@PROJECT_NAME@_INCLUDE_DIR xvega INTERFACE_INCLUDE_DIRECTORIES)
get_target_property(@PROJECT_NAME@_LIBRARY xvega LOCATION)
get_target_property(@PROJECT_NAME@_STATIC_LIBRARY xvega-static LOCATION)
elseif (TARGET xvega)
get_target_property(@PROJECT_NAME@_INCLUDE_DIR xvega INTERFACE_INCLUDE_DIRECTORIES)
get_target_property(@PROJECT_NAME@_LIBRARY xvega LOCATION)
elseif (TARGET xvega-static)
get_target_property(@PROJECT_NAME@_INCLUDE_DIR xvega-static INTERFACE_INCLUDE_DIRECTORIES)
get_target_property(@PROJECT_NAME@_STATIC_LIBRARY xvega-static LOCATION)
endif ()
endif()
set(@PROJECT_NAME@_LIBRARY "")