ba-thesis/sw/cpp/CMakeLists.txt

19 lines
562 B
CMake

cmake_minimum_required (VERSION 3.0)
project(cpp_decoders)
find_package(Eigen3 3.3 REQUIRED NO_MODULE)
find_package(pybind11 CONFIG REQUIRED)
include_directories(${pybind11_INCLUDE_DIRS})
pybind11_add_module(cpp_decoders src/cpp_decoders.cpp)
target_link_libraries(cpp_decoders PRIVATE Eigen3::Eigen)
set(INSTALL_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../cpp_modules)
install(TARGETS cpp_decoders ARCHIVE DESTINATION ${INSTALL_DIR}
LIBRARY DESTINATION ${INSTALL_DIR}
RUNTIME DESTINATION ${INSTALL_DIR})