-
Notifications
You must be signed in to change notification settings - Fork 28
/
xeus-cppConfig.cmake.in
43 lines (36 loc) · 2.02 KB
/
xeus-cppConfig.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
39
40
41
42
43
############################################################################
# Copyright (c) 2023, xeus-cpp contributors #
# #
# Distributed under the terms of the BSD 3-Clause License. #
# #
# The full license is in the file LICENSE, distributed with this software. #
############################################################################
# xeus-cpp cmake module
# This module sets the following variables in your project::
#
# xeus-cpp_FOUND - true if xeus-cpp was found on the system
# xeus-cpp_INCLUDE_DIRS - the directory containing xeus-cpp headers
# xeus-cpp_LIBRARY - the library for dynamic linking
# xeus-cpp_STATIC_LIBRARY - the library for static linking
@PACKAGE_INIT@
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR};${CMAKE_MODULE_PATH}")
@XEUS_CPP_CONFIG_CODE@
include(CMakeFindDependencyMacro)
if (NOT @XEUS_CPP_EMSCRIPTEN_WASM_BUILD@)
find_dependency(xeus-zmq @xeus-zmq_REQUIRED_VERSION@)
endif ()
if (NOT TARGET xeus-cpp AND NOT TARGET xeus-cpp-static)
include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")
if (TARGET xeus-cpp AND TARGET xeus-cpp-static)
get_target_property(@PROJECT_NAME@_INCLUDE_DIR xeus-cpp INTERFACE_INCLUDE_DIRECTORIES)
get_target_property(@PROJECT_NAME@_LIBRARY xeus-cpp LOCATION)
get_target_property(@PROJECT_NAME@_STATIC_LIBRARY xeus-cpp-static LOCATION)
elseif (TARGET xeus-cpp)
get_target_property(@PROJECT_NAME@_INCLUDE_DIR xeus-cpp INTERFACE_INCLUDE_DIRECTORIES)
get_target_property(@PROJECT_NAME@_LIBRARY xeus-cpp LOCATION)
elseif (TARGET xeus-cpp-static)
get_target_property(@PROJECT_NAME@_INCLUDE_DIR xeus-cpp-static INTERFACE_INCLUDE_DIRECTORIES)
get_target_property(@PROJECT_NAME@_STATIC_LIBRARY xeus-cpp-static LOCATION)
set(@PROJECT_NAME@_LIBRARY ${@PROJECT_NAME@_STATIC_LIBRARY})
endif ()
endif ()