-
Notifications
You must be signed in to change notification settings - Fork 1
/
xenaConfig.cmake.in
52 lines (41 loc) · 1.95 KB
/
xenaConfig.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
44
45
46
47
48
49
50
51
52
############################################################################
# Copyright (c) 2016, Johan Mabille, Sylvain Corlay, Martin Renou #
# Copyright (c) 2016, QuantStack #
# #
# Distributed under the terms of the BSD 3-Clause License. #
# #
# The full license is in the file LICENSE, distributed with this software. #
############################################################################
# xeus cmake module
# This module sets the following variables in your project::
#
# xeus_FOUND - true if xeus found on the system
# xeus_INCLUDE_DIRS - the directory containing xeus headers
# xeus_LIBRARY - the library for dynamic linking
# xeus_STATIC_LIBRARY - the library for static linking
@PACKAGE_INIT@
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR};${CMAKE_MODULE_PATH}")
@XENA_CONFIG_CODE@
include(CMakeFindDependencyMacro)
find_dependency(xtl @xtl_REQUIRED_VERSION@)
find_dependency(nlohmann_json @nlohmann_json_REQUIRED_VERSION@)
# On Unix platforms, ZeroMQ is built with autotools and pkg-config is
# required to locate it.
if (WIN32)
find_dependency(ZeroMQ @zeromq_REQUIRED_VERSION@)
else()
# In order to not propagate the build-time requirement for pkg-config, we
# do not propagate the dependency on ZeroMQ.
#find_package(PkgConfig)
#pkg_check_modules(ZeroMQ libzmq>=@zeromq_REQUIRED_VERSION@ REQUIRED)
endif()
find_dependency(cppzmq @cppzmq_REQUIRED_VERSION@)
if(UNIX AND NOT APPLE)
find_dependency(LibUUID)
endif()
find_dependency(OpenSSL)
if(NOT TARGET @PROJECT_NAME@)
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
get_target_property(@PROJECT_NAME@_INCLUDE_DIR @PROJECT_NAME@ INTERFACE_INCLUDE_DIRECTORIES)
get_target_property(@PROJECT_NAME@_LIBRARY @PROJECT_NAME@ LOCATION)
endif()