forked from IntelRealSense/librealsense
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
58 lines (47 loc) · 2.02 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2019 Intel Corporation. All Rights Reserved.
# ubuntu 16.04 LTS cmake version 3.5.1
cmake_minimum_required(VERSION 2.8.3)
project(RealsenseToolsRosbagInspector)
if(BUILD_GRAPHICAL_EXAMPLES)
set(RS_ROSBAG_INSPECTOR_CPP
rs-rosbag-inspector.cpp
files_container.h
print_helpers.h
rosbag_content.h
../../common/os.cpp
../../third-party/glad/glad.c
../../third-party/imgui/imgui.cpp
../../third-party/imgui/imgui_draw.cpp
../../third-party/imgui/imgui_impl_glfw.cpp
../../third-party/imgui/imgui-fonts-karla.hpp
../../third-party/imgui/imgui-fonts-fontawesome.hpp
../../third-party/tinyfiledialogs/tinyfiledialogs.c
../../third-party/tinyfiledialogs/tinyfiledialogs.h
)
if(WIN32)
add_executable(rs-rosbag-inspector WIN32 ${RS_ROSBAG_INSPECTOR_CPP})
include_directories(rs-rosbag-inspector ../../third-party/imgui ../../common ../../third-party/glad
../../third-party/tinyfiledialogs ../../third-party ${CMAKE_CURRENT_SOURCE_DIR}/res/)
else()
add_executable(rs-rosbag-inspector ${RS_ROSBAG_INSPECTOR_CPP})
include_directories(rs-rosbag-inspector ../../third-party/imgui ../../common ../../third-party/glad
../../third-party/tinyfiledialogs ../../third-party)
endif()
set_property(TARGET rs-rosbag-inspector PROPERTY CXX_STANDARD 11)
target_include_directories(rs-rosbag-inspector PRIVATE
${ROSBAG_HEADER_DIRS}
${BOOST_INCLUDE_PATH}
${LZ4_INCLUDE_PATH}
)
target_link_libraries(rs-rosbag-inspector realsense-file ${DEPENDENCIES})
set_target_properties (rs-rosbag-inspector PROPERTIES
FOLDER Tools
)
install(
TARGETS
rs-rosbag-inspector
RUNTIME DESTINATION
${CMAKE_INSTALL_BINDIR}
)
endif()