-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathxcanvasConfig.cmake.in
38 lines (32 loc) · 1.76 KB
/
xcanvasConfig.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
38
############################################################################
# Copyright (c) 2021, Martin Renou #
# #
# Distributed under the terms of the BSD 3-Clause License. #
# #
# The full license is in the file LICENSE, distributed with this software. #
############################################################################
# xcanvas cmake module
# This module sets the following variables in your project::
#
# xcanvas_FOUND - true if xcanvas found on the system
# xcanvas_INCLUDE_DIRS - the directory containing xcanvas headers
# xcanvas_LIBRARY - the library for dynamic linking
@PACKAGE_INIT@
@XCANVAS_CONFIG_CODE@
include(CMakeFindDependencyMacro)
find_dependency(xwidgets @xwidgets_REQUIRED_VERSION@)
find_dependency(xproperty @xproperty_REQUIRED_VERSION@)
if(NOT TARGET xcanvas AND NOT TARGET xcanvas-static)
include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")
if (TARGET xcanvas AND TARGET xcanvas-static)
get_target_property(@PROJECT_NAME@_INCLUDE_DIR xcanvas INTERFACE_INCLUDE_DIRECTORIES)
get_target_property(@PROJECT_NAME@_LIBRARY xcanvas LOCATION)
get_target_property(@PROJECT_NAME@_STATIC_LIBRARY xcanvas-static LOCATION)
elseif (TARGET xcanvas)
get_target_property(@PROJECT_NAME@_INCLUDE_DIR xcanvas INTERFACE_INCLUDE_DIRECTORIES)
get_target_property(@PROJECT_NAME@_LIBRARY xcanvas LOCATION)
elseif (TARGET xcanvas-static)
get_target_property(@PROJECT_NAME@_INCLUDE_DIR xcanvas-static INTERFACE_INCLUDE_DIRECTORIES)
get_target_property(@PROJECT_NAME@_STATIC_LIBRARY xcanvas-static LOCATION)
endif()
endif()