You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
816 B

# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2022 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.1.0)
project( pyrsutils )
set( DEPENDENCIES rsutils )
set( PYRSUTILS_FILES
"pyrsutils.cpp"
)
pybind11_add_module( ${PROJECT_NAME} SHARED ${PYRSUTILS_FILES} )
target_link_libraries( ${PROJECT_NAME} PRIVATE ${DEPENDENCIES} )
set_target_properties( ${PROJECT_NAME}
PROPERTIES
VERSION ${REALSENSE_VERSION_STRING}
SOVERSION "${REALSENSE_VERSION_MAJOR}.${REALSENSE_VERSION_MINOR}"
)
set_target_properties( ${PROJECT_NAME}
PROPERTIES
FOLDER Library/Python
)
using_easyloggingpp( ${PROJECT_NAME} )
install(
TARGETS ${PROJECT_NAME}
EXPORT pyrealsense2Targets
LIBRARY DESTINATION ${PYTHON_INSTALL_DIR}
)