5cad467a49
Add a target that resembles what you would get from "normal" use of pybind11 when following the examples. Link with it. Drop Boost:Python sources from libcalamares.
17 lines
537 B
CMake
17 lines
537 B
CMake
# === This file is part of Calamares - <https://calamares.io> ===
|
|
#
|
|
# SPDX-FileCopyrightText: 2023 Adriaan de Groot <groot@kde.org>
|
|
# SPDX-License-Identifier: BSD-2-Clause
|
|
#
|
|
###
|
|
#
|
|
# This is a very-stripped-down way of getting the bundled pybind11
|
|
|
|
add_library(pybind11_headers INTERFACE)
|
|
add_library(pybind11::headers ALIAS pybind11_headers)
|
|
|
|
target_include_directories(pybind11_headers INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
|
target_link_libraries(pybind11_headers INTERFACE Python::Python) # Was searched-for at top-level
|
|
|
|
|