-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathxeus-luaConfig.cmake.in
45 lines (37 loc) · 2.12 KB
/
xeus-luaConfig.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
############################################################################
# Copyright (c) 2018, Martin Renou, Johan Mabille, Sylvain Corlay and #
# Wolf Vollprecht #
# #
# Distributed under the terms of the BSD 3-Clause License. #
# #
# The full license is in the file LICENSE, distributed with this software. #
############################################################################
# xeus-lua cmake module
# This module sets the following variables in your project::
#
# xeus-lua_FOUND - true if xeus-lua found on the system
# xeus-lua_INCLUDE_DIRS - the directory containing xeus-lua headers
# xeus-lua_LIBRARY - the library for dynamic linking
# xeus-lua_STATIC_LIBRARY - the library for static linking
@PACKAGE_INIT@
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR};${CMAKE_MODULE_PATH}")
@XEUS_LUA_CONFIG_CODE@
include(CMakeFindDependencyMacro)
find_dependency(xeus @xeus_REQUIRED_VERSION@)
find_dependency(cppzmq @cppzmq_REQUIRED_VERSION@)
find_dependency(Lua @Lua_REQUIRED_VERSION@)
if (NOT TARGET xeus-lua AND NOT TARGET xeus-lua-static)
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
if (TARGET xeus-lua AND TARGET xeus-lua-static)
get_target_property(@PROJECT_NAME@_INCLUDE_DIR xeus-lua INTERFACE_INCLUDE_DIRECTORIES)
get_target_property(@PROJECT_NAME@_LIBRARY xeus-lua LOCATION)
get_target_property(@PROJECT_NAME@_STATIC_LIBRARY xeus-lua-static LOCATION)
elseif (TARGET xeus-lua)
get_target_property(@PROJECT_NAME@_INCLUDE_DIR xeus-lua INTERFACE_INCLUDE_DIRECTORIES)
get_target_property(@PROJECT_NAME@_LIBRARY xeus-lua LOCATION)
elseif (TARGET xeus-lua-static)
get_target_property(@PROJECT_NAME@_INCLUDE_DIR xeus-lua-static INTERFACE_INCLUDE_DIRECTORIES)
get_target_property(@PROJECT_NAME@_STATIC_LIBRARY xeus-lua-static LOCATION)
set(@PROJECT_NAME@_LIBRARY ${@PROJECT_NAME@_STATIC_LIBRARY})
endif ()
endif ()