forked from xtensor-stack/xtensor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xtensorConfig.cmake.in
32 lines (26 loc) · 1.18 KB
/
xtensorConfig.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
############################################################################
# Copyright (c) 2016, Johan Mabille and Sylvain Corlay #
# #
# Distributed under the terms of the BSD 3-Clause License. #
# #
# The full license is in the file LICENSE, distributed with this software. #
############################################################################
# xtensor cmake module
# This module sets the following variables in your project::
#
# xtensor_FOUND - true if xtensor found on the system
# xtensor_INCLUDE_DIRS - the directory containing xtensor headers
# xtensor_LIBRARY - empty
@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
find_dependency(xtl @xtl_REQUIRED_VERSION@)
if(XTENSOR_USE_XSIMD)
find_dependency(xsimd @xsimd_REQUIRED_VERSION@)
endif()
if(XTENSOR_USE_TBB)
find_dependency(TBB)
endif()
if(NOT TARGET @PROJECT_NAME@)
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
get_target_property(@PROJECT_NAME@_INCLUDE_DIRS xtensor INTERFACE_INCLUDE_DIRECTORIES)
endif()