Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include directories remove realsense2 #8109

Merged
merged 2 commits into from
Jan 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMake/global_config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ endmacro()
macro(global_target_config)
target_link_libraries(${LRS_TARGET} PRIVATE realsense-file ${CMAKE_THREAD_LIBS_INIT})

include_directories(${LRS_TARGET} src)
include_directories(src)

set_target_properties (${LRS_TARGET} PROPERTIES FOLDER Library)

Expand Down
2 changes: 1 addition & 1 deletion examples/align-advanced/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if(BUILD_GRAPHICAL_EXAMPLES)
add_executable(rs-align-advanced rs-align-advanced.cpp ../../third-party/imgui/imgui.cpp ../../third-party/imgui/imgui_draw.cpp ../../third-party/imgui/imgui_impl_glfw.cpp)
set_property(TARGET rs-align-advanced PROPERTY CXX_STANDARD 11)
target_link_libraries(rs-align-advanced ${DEPENDENCIES})
include_directories(rs-align-advanced ../../common ../../third-party/imgui)
include_directories(../../common ../../third-party/imgui)
set_target_properties (rs-align-advanced PROPERTIES FOLDER Examples)
install(TARGETS rs-align-advanced RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()
2 changes: 1 addition & 1 deletion examples/align/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if(BUILD_GRAPHICAL_EXAMPLES)
add_executable(rs-align rs-align.cpp ../../third-party/imgui/imgui.cpp ../../third-party/imgui/imgui_draw.cpp ../../third-party/imgui/imgui_impl_glfw.cpp)
set_property(TARGET rs-align PROPERTY CXX_STANDARD 11)
target_link_libraries(rs-align ${DEPENDENCIES})
include_directories(rs-align ../../common ../../third-party/imgui)
include_directories(../../common ../../third-party/imgui)
set_target_properties (rs-align PROPERTIES FOLDER Examples)
install(TARGETS rs-align RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()
2 changes: 1 addition & 1 deletion examples/capture/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if(BUILD_GRAPHICAL_EXAMPLES)
add_executable(rs-capture rs-capture.cpp ../example.hpp)
set_property(TARGET rs-capture PROPERTY CXX_STANDARD 11)
target_link_libraries(rs-capture ${DEPENDENCIES})
include_directories(rs-capture ../ ../../third-party/tclap/include)
include_directories(../ ../../third-party/tclap/include)
set_target_properties (rs-capture PROPERTIES FOLDER "Examples")

install(TARGETS rs-capture RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
Expand Down
2 changes: 1 addition & 1 deletion examples/gl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if(BUILD_GRAPHICAL_EXAMPLES AND NOT APPLE)
#pointcloud
add_executable(rs-gl rs-gl.cpp ../example.hpp)
target_link_libraries(rs-gl ${DEPENDENCIES} realsense2-gl)
include_directories(rs-gl ../)
include_directories(../)
set_target_properties (rs-gl PROPERTIES FOLDER Examples)
install(TARGETS rs-gl RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()
2 changes: 1 addition & 1 deletion examples/hdr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if(BUILD_GRAPHICAL_EXAMPLES)
add_executable(rs-hdr rs-hdr.cpp ../example.hpp)
set_property(TARGET rs-hdr PROPERTY CXX_STANDARD 11)
target_link_libraries(rs-hdr ${DEPENDENCIES})
include_directories(rs-hdr ../ ../../third-party/tclap/include)
include_directories(../ ../../third-party/tclap/include)
set_target_properties (rs-hdr PROPERTIES FOLDER "Examples")

install(TARGETS rs-hdr RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
Expand Down
1 change: 0 additions & 1 deletion examples/hello-realsense/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ project(RealsenseExamplesHelloRealSense)
add_executable(rs-hello-realsense rs-hello-realsense.cpp)
set_property(TARGET rs-hello-realsense PROPERTY CXX_STANDARD 11)
target_link_libraries(rs-hello-realsense ${DEPENDENCIES})
include_directories(rs-hello-realsense)
set_target_properties (rs-hello-realsense PROPERTIES FOLDER "Examples")

install(TARGETS rs-hello-realsense RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
2 changes: 1 addition & 1 deletion examples/measure/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if(BUILD_GRAPHICAL_EXAMPLES)
add_executable(rs-measure rs-measure.cpp ../example.hpp)
set_property(TARGET rs-measure PROPERTY CXX_STANDARD 11)
target_link_libraries(rs-measure ${DEPENDENCIES} Threads::Threads)
include_directories(rs-measure ../)
include_directories(../)
set_target_properties (rs-measure PROPERTIES FOLDER "Examples")

install(TARGETS rs-measure RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
Expand Down
2 changes: 1 addition & 1 deletion examples/multicam/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ project(RealsenseExamplesMulticam)
if(BUILD_GRAPHICAL_EXAMPLES)
add_executable(rs-multicam rs-multicam.cpp ../example.hpp)
set_property(TARGET rs-multicam PROPERTY CXX_STANDARD 11)
include_directories(rs-multicam ../)
include_directories(../)
target_link_libraries(rs-multicam ${DEPENDENCIES})
set_target_properties (rs-multicam PROPERTIES FOLDER Examples)
install(TARGETS rs-multicam RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
Expand Down
2 changes: 1 addition & 1 deletion examples/pointcloud/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if(BUILD_GRAPHICAL_EXAMPLES)
add_executable(rs-pointcloud rs-pointcloud.cpp ../example.hpp)
set_property(TARGET rs-pointcloud PROPERTY CXX_STANDARD 11)
target_link_libraries(rs-pointcloud ${DEPENDENCIES})
include_directories(rs-pointcloud ../)
include_directories(../)
set_target_properties (rs-pointcloud PROPERTIES FOLDER Examples)
install(TARGETS rs-pointcloud RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()
2 changes: 1 addition & 1 deletion examples/post-processing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if(BUILD_GRAPHICAL_EXAMPLES)
add_executable(rs-post-processing rs-post-processing.cpp ../example.hpp ../../third-party/imgui/imgui.cpp ../../third-party/imgui/imgui_draw.cpp ../../third-party/imgui/imgui_impl_glfw.cpp)
set_property(TARGET rs-post-processing PROPERTY CXX_STANDARD 11)
target_link_libraries(rs-post-processing ${DEPENDENCIES})
include_directories(rs-post-processing ../ ../../third-party/tclap/include ../../third-party/imgui)
include_directories(../ ../../third-party/tclap/include ../../third-party/imgui)
set_target_properties (rs-post-processing PROPERTIES FOLDER "Examples")
install(TARGETS rs-post-processing RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()
2 changes: 1 addition & 1 deletion examples/record-playback/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if(BUILD_GRAPHICAL_EXAMPLES)
add_executable(rs-record-playback rs-record-playback.cpp ../example.hpp ../../third-party/imgui/imgui.cpp ../../third-party/imgui/imgui_draw.cpp ../../third-party/imgui/imgui_impl_glfw.cpp)
set_property(TARGET rs-record-playback PROPERTY CXX_STANDARD 11)
target_link_libraries(rs-record-playback ${DEPENDENCIES})
include_directories(rs-record-playback ../ ../../third-party/tclap/include ../../third-party/imgui)
include_directories(../ ../../third-party/tclap/include ../../third-party/imgui)
set_target_properties (rs-record-playback PROPERTIES FOLDER "Examples")
install(TARGETS rs-record-playback RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()
2 changes: 1 addition & 1 deletion examples/save-to-disk/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ project(RealsenseExamplesSaveToDisk)
add_executable(rs-save-to-disk rs-save-to-disk.cpp)
set_property(TARGET rs-save-to-disk PROPERTY CXX_STANDARD 11)
target_link_libraries(rs-save-to-disk ${DEPENDENCIES})
include_directories(rs-save-to-disk ../../common ../../third-party ../../third-party/tclap/include)
include_directories(../../common ../../third-party ../../third-party/tclap/include)
set_target_properties (rs-save-to-disk PROPERTIES FOLDER "Examples")
install(TARGETS rs-save-to-disk RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
1 change: 0 additions & 1 deletion examples/sensor-control/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ if(BUILD_GRAPHICAL_EXAMPLES)
add_executable(rs-sensor-control api_how_to.h rs-sensor-control.cpp)
set_property(TARGET rs-sensor-control PROPERTY CXX_STANDARD 11)
target_link_libraries(rs-sensor-control ${DEPENDENCIES})
include_directories(rs-sensor-control)
set_target_properties (rs-sensor-control PROPERTIES FOLDER Examples)
install(TARGETS rs-sensor-control RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()
2 changes: 1 addition & 1 deletion examples/software-device/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if(BUILD_GRAPHICAL_EXAMPLES)
add_executable(rs-software-device rs-software-device.cpp)
set_property(TARGET rs-software-device PROPERTY CXX_STANDARD 11)
target_link_libraries(rs-software-device ${DEPENDENCIES})
include_directories(rs-software-device ../ ../../third-party/tclap/include ../../third-party/ ../../common/res)
include_directories(../ ../../third-party/tclap/include ../../third-party/ ../../common/res)
set_target_properties (rs-software-device PROPERTIES FOLDER "Examples")
install(TARGETS rs-software-device RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()
2 changes: 1 addition & 1 deletion examples/tracking-and-depth/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if(BUILD_GRAPHICAL_EXAMPLES)
add_executable(rs-tracking-and-depth rs-tracking-and-depth.cpp ../example.hpp)
set_property(TARGET rs-tracking-and-depth PROPERTY CXX_STANDARD 11)
target_link_libraries(rs-tracking-and-depth ${DEPENDENCIES})
include_directories(rs-tracking-and-depth ../)
include_directories(../)
set_target_properties (rs-tracking-and-depth PROPERTIES FOLDER Examples)
install(TARGETS rs-tracking-and-depth RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
add_custom_command(
Expand Down
4 changes: 2 additions & 2 deletions src/compression/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set(COMPRESSION_SOURCES ${COMPRESSION_SOURCES} ${LZ4_DIR}/lz4.h ${LZ4_DIR}/lz4.c

add_library(${PROJECT_NAME} STATIC ${COMPRESSION_SOURCES})

include_directories(${PROJECT_NAME}
include_directories(
../../common
../ipDeviceCommon
../../third-party/easyloggingpp/src
Expand All @@ -33,7 +33,7 @@ add_dependencies(${PROJECT_NAME}
libjpeg-turbo
)

include_directories(${PROJECT_NAME}
include_directories(
${CMAKE_BINARY_DIR}/libjpeg-turbo/include
${LZ4_DIR}
)
Expand Down
2 changes: 1 addition & 1 deletion tools/benchmark/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ endif()
if(BUILD_GRAPHICAL_EXAMPLES)
add_executable(rs-benchmark rs-benchmark.cpp ../../third-party/glad/glad.c)
target_link_libraries(rs-benchmark ${DEPENDENCIES} realsense2-gl)
include_directories(rs-benchmark ../../third-party/tclap/include ../../third-party/glad)
include_directories(../../third-party/tclap/include ../../third-party/glad)
set_target_properties (rs-benchmark PROPERTIES
FOLDER Tools
)
Expand Down
2 changes: 1 addition & 1 deletion tools/convert/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ add_executable(${RS_TARGET} rs-convert.cpp
)
set_property(TARGET ${RS_TARGET} PROPERTY CXX_STANDARD 11)
target_link_libraries(${RS_TARGET} ${DEPENDENCIES} Threads::Threads)
include_directories(${RS_TARGET} ../../common ../../third-party ../../third-party/tclap/include)
include_directories(../../common ../../third-party ../../third-party/tclap/include)

set_target_properties (${RS_TARGET} PROPERTIES
FOLDER "Tools"
Expand Down
2 changes: 1 addition & 1 deletion tools/data-collect/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ project(RealsenseToolsDataCollect)
add_executable(rs-data-collect rs-data-collect.h rs-data-collect.cpp)
set_property(TARGET rs-data-collect PROPERTY CXX_STANDARD 11)
target_link_libraries(rs-data-collect ${DEPENDENCIES})
include_directories(rs-data-collect ../../common ../../third-party/tclap/include)
include_directories(../../common ../../third-party/tclap/include)
set_target_properties (rs-data-collect PROPERTIES
FOLDER "Tools"
)
Expand Down
22 changes: 11 additions & 11 deletions tools/depth-quality/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ if(BUILD_GRAPHICAL_EXAMPLES)
depth-metrics.h
${COMMON_SRC})

include_directories(rs-depth-quality ../../common ../../third-party
../../third-party/imgui
../../third-party/glad
../../third-party/tclap/include
../../third-party/tinyfiledialogs
${CMAKE_CURRENT_SOURCE_DIR}/res/)
include_directories(../../common ../../third-party
../../third-party/imgui
../../third-party/glad
../../third-party/tclap/include
../../third-party/tinyfiledialogs
${CMAKE_CURRENT_SOURCE_DIR}/res/)

#list(TRANSFORM DELAYED PREPEND " /DELAYLOAD:")
PREPEND(DELAYED " /DELAYLOAD:" ${DELAYED})
Expand All @@ -92,11 +92,11 @@ if(BUILD_GRAPHICAL_EXAMPLES)
${ELPP_FILES}
)

include_directories(rs-depth-quality ../../common ../../third-party
../../third-party/imgui
../../third-party/glad
../../third-party/tinyfiledialogs
../../third-party/tclap/include)
include_directories(../../common ../../third-party
../../third-party/imgui
../../third-party/glad
../../third-party/tinyfiledialogs
../../third-party/tclap/include)
endif()

source_group("EasyLogging++" FILES ${ELPP_FILES})
Expand Down
2 changes: 1 addition & 1 deletion tools/enumerate-devices/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ project(RealsenseExamplesEnumerateDevices)
add_executable(rs-enumerate-devices rs-enumerate-devices.cpp)
set_property(TARGET rs-enumerate-devices PROPERTY CXX_STANDARD 11)
target_link_libraries(rs-enumerate-devices ${DEPENDENCIES})
include_directories(rs-enumerate-devices ../../third-party/tclap/include)
include_directories(../../third-party/tclap/include)
set_target_properties (rs-enumerate-devices PROPERTIES
FOLDER Tools
)
Expand Down
2 changes: 1 addition & 1 deletion tools/fw-logger/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if(WIN32 OR ANDROID)
else()
target_link_libraries(rs-fw-logger -lpthread ${DEPENDENCIES})
endif()
include_directories(rs-fw-logger ../../third-party/tclap/include cpp-fw-logger-helpers)
include_directories(../../third-party/tclap/include cpp-fw-logger-helpers)
set_target_properties (rs-fw-logger PROPERTIES
FOLDER Tools
)
Expand Down
2 changes: 1 addition & 1 deletion tools/recorder/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ project(RealsenseToolsRecorder)
add_executable(rs-record rs-record.cpp)
set_property(TARGET rs-record PROPERTY CXX_STANDARD 11)
target_link_libraries(rs-record ${DEPENDENCIES})
include_directories(rs-record ../../common ../../third-party/tclap/include)
include_directories(../../common ../../third-party/tclap/include)
set_target_properties (rs-record PROPERTIES
FOLDER "Tools"
)
Expand Down
4 changes: 2 additions & 2 deletions tools/rosbag-inspector/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ if(BUILD_GRAPHICAL_EXAMPLES)
if(WIN32)
add_executable(rs-rosbag-inspector WIN32 ${RS_ROSBAG_INSPECTOR_CPP})

include_directories(rs-rosbag-inspector ../../third-party/imgui ../../common ../../third-party/glad
include_directories(../../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
include_directories(../../third-party/imgui ../../common ../../third-party/glad
../../third-party/tinyfiledialogs ../../third-party)
endif()
set_property(TARGET rs-rosbag-inspector PROPERTY CXX_STANDARD 11)
Expand Down
2 changes: 1 addition & 1 deletion tools/rs-server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ else()
add_executable(${PROJECT_NAME} ${RS_SERVER_SOURCES})
add_definitions(-DELPP_NO_DEFAULT_LOG_FILE)

include_directories(${PROJECT_NAME}
include_directories(
../../common
../../src/ipDeviceCommon
../../include/librealsense2
Expand Down
2 changes: 1 addition & 1 deletion tools/terminal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if(WIN32 OR ANDROID)
else()
target_link_libraries(rs-terminal -lpthread ${DEPENDENCIES})
endif()
include_directories(rs-terminal ../../common ../../third-party ../../third-party/tclap/include)
include_directories(../../common ../../third-party ../../third-party/tclap/include)
set_target_properties (rs-terminal PROPERTIES
FOLDER Tools
)
Expand Down
2 changes: 1 addition & 1 deletion unit-tests/internal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ set (INTERNAL_TESTS_SOURCES
add_executable(${PROJECT_NAME} ${INTERNAL_TESTS_SOURCES})
set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 11)
target_link_libraries(${PROJECT_NAME} ${DEPENDENCIES})
include_directories(${PROJECT_NAME} ../ ../../src/)
include_directories(../ ../../src/)
set_target_properties (${PROJECT_NAME} PROPERTIES FOLDER "Unit-Tests")

if(UNIX)
Expand Down
2 changes: 1 addition & 1 deletion wrappers/opencv/depth-filter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse4.1")

add_executable(rs-depth-filter rs-depth-filter.cpp downsample.h downsample.cpp)
include_directories(rs-depth-filter ../../../common)
include_directories(../../../common)
target_link_libraries(rs-depth-filter ${DEPENDENCIES})
set_target_properties (rs-depth-filter PROPERTIES
FOLDER "Examples/OpenCV"
Expand Down
2 changes: 1 addition & 1 deletion wrappers/opencv/kinfu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set(DEPENDENCIES glfw ${OPENGL_LIBRARIES} ${DEPENDENCIES})
add_executable(rs-kinfu rs-kinfu.cpp ../../../examples/example.hpp)
set_property(TARGET rs-kinfu PROPERTY CXX_STANDARD 11)
target_link_libraries(rs-kinfu ${DEPENDENCIES})
include_directories(rs-kinfu ../../../examples)
include_directories(../../../examples)
set_target_properties (rs-kinfu PROPERTIES
FOLDER "Examples/OpenCV"
)
Expand Down