File size: 706 Bytes
e6c4101 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
cmake_minimum_required(VERSION 3.3) project(esim_py) set(OpenCV_DIR "E:\\opencv\\build") find_package(pybind11 REQUIRED) find_package(OpenCV REQUIRED) find_package(Eigen3 REQUIRED NO_MODULE) find_package(Boost COMPONENTS system filesystem REQUIRED) set(CMAKE_POSITION_INDEPENDENT_CODE ON) set(CMAKE_CXX_STANDARD 11) include_directories(include ${EIGEN3_INCLUDE_DIR} ${OpenCV_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS}) add_library(libesim STATIC src/esim.cpp) pybind11_add_module(esim_py src/bindings.cpp) target_link_libraries(esim_py PRIVATE libesim ${OpenCV_LIBS} ${Boost_FILESYSTEM_LIBRARY} ${BOOST_SYSTEM_LIBRARY} Boost::filesystem Boost::system Eigen3::Eigen pybind11::module) |