Debian Codegraph @

origami/python/CMakeLists.txt

raw
1 # Copyright Advanced Micro Devices, Inc., or its affiliates.
2 # SPDX-License-Identifier: MIT
3
4 find_package(Python 3.8 COMPONENTS Interpreter Development.Module REQUIRED)
5
6 include(FetchContent)
7 FetchContent_Declare(
8 nanobind
9 GIT_REPOSITORY https://github.com/wjakob/nanobind.git
10 GIT_TAG v1.9.2 # or latest stable version
11 )
12 FetchContent_MakeAvailable(nanobind)
13
14 find_package(nanobind CONFIG REQUIRED)
15
16 nanobind_add_module(origami_python
17 "${CMAKE_CURRENT_SOURCE_DIR}/origami_module.cpp"
18 )
19
20 set_target_properties(origami_python PROPERTIES
21 OUTPUT_NAME "origami"
22 )
23
24 target_link_libraries(origami_python PRIVATE roc::origami)
25