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.

30 lines
773 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( pyrealdds )
set( PYREALDDS_FILES
pyrealdds.cpp
)
pybind11_add_module( ${PROJECT_NAME} SHARED ${PYREALDDS_FILES} )
target_link_libraries( ${PROJECT_NAME} PRIVATE realdds )
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}
)