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.

47 lines
1.1 KiB

cmake_minimum_required(VERSION 2.8.9...3.20.5)
project(realsense-file)
include(config.cmake)
FILE(GLOB_RECURSE AllSources
${LZ4_DIR}/lz4.h
${LZ4_DIR}/lz4.c
${ROSBAG_DIR}/*.h
${ROSBAG_DIR}/*.cpp
${ROSBAG_DIR}/*.c
)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
source_group("Header Files\\lz4" FILES
lz4/lz4.h
)
source_group("Source Files\\lz4" FILES
lz4/lz4.c
)
add_library(${PROJECT_NAME} STATIC
${AllSources}
${HEADER_FILES_ROSBAG}
${SOURCE_FILES_ROSBAG}
${SOURCE_FILES_COMPRESSION}
)
target_include_directories(${PROJECT_NAME} PRIVATE
${ROSBAG_HEADER_DIRS}
${LZ4_INCLUDE_PATH}
)
#set_target_properties(${PROJECT_NAME} PROPERTIES VERSION "${LIBVERSION}" SOVERSION "${LIBSOVERSION}")
set_target_properties (${PROJECT_NAME} PROPERTIES FOLDER Library)
set(CMAKECONFIG_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/../cmake/realsense2")
install(TARGETS ${PROJECT_NAME}
EXPORT realsense2Targets
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
)