hermespy-rt

Minimalistic signal processing ray-tracer in C
git clone https://git.ea.contact/hermespy-rt
Log | Files | Refs

commit 35cb3a51f45ad79bb828161e4a62450c60dd40cc
parent f9e85f4abad97282d8e8fe10fa65afdf0c14e47d
Author: Egor Achkasov <eaachkasov@edu.hse.ru>
Date:   Tue, 10 Dec 2024 17:24:13 +0100

Add CMakeLists.txt

Diffstat:
ACMakeLists.txt | 18++++++++++++++++++
1 file changed, 18 insertions(+), 0 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -0,0 +1,18 @@ +set(CMAKE_CXX_STANDARD 14) +set(CMAKE_CXX_STANDARD_REQUIRED ON) +set(PYBIND11_NEWPYTHON ON) + +project(hermespy-rt) + +find_package(Python REQUIRED COMPONENTS Interpreter Development.Module) +find_package(pybind11 CONFIG REQUIRED) + +# Configure the C++ library +add_library(hermespy-rt-static STATIC compute_paths.c) +target_include_directories(hermespy-rt-static PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) + +# Configure the python module +pybind11_add_module(hermespy-rt-binding MODULE compute_paths_pybind11.cpp) +set_target_properties(hermespy-rt-binding PROPERTIES OUTPUT_NAME "rt") +target_link_libraries(hermespy-rt-binding PRIVATE hermespy-rt-static pybind11::headers) +target_include_directories(hermespy-rt-binding PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})