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.

36 lines
760 B

# minimum required cmake version: 3.1.0
cmake_minimum_required(VERSION 3.1.0)
if(NOT WIN32)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread")
endif()
project(RealsensePCLExamples)
find_package( PCL REQUIRED )
if (PCL_FOUND)
include_directories(${PCL_INCLUDE_DIRS})
add_definitions(${PCL_DEFINITIONS})
link_directories(${PCL_LIBRARY_DIRS})
endif()
list(APPEND DEPENDENCIES ${PCL_LIBRARIES})
find_package(OpenGL)
if(NOT OPENGL_FOUND)
message(FATAL_ERROR "\n\n OpenGL package is missing!\n\n")
endif()
list(APPEND DEPENDENCIES ${OPENGL_LIBRARIES})
if(WIN32)
list(APPEND DEPENDENCIES glfw3)
else()
find_package(glfw3 REQUIRED)
list(APPEND DEPENDENCIES glfw)
endif()
add_subdirectory(pcl)
add_subdirectory(pcl-color)