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.
19 lines
540 B
19 lines
540 B
2 months ago
|
# License: Apache 2.0. See LICENSE file in root directory.
|
||
|
# Copyright(c) 2019 Intel Corporation. All Rights Reserved.
|
||
|
cmake_minimum_required(VERSION 3.1.0)
|
||
|
|
||
|
project(hello_librealsense2)
|
||
|
|
||
|
# Find librealsense2 installed package
|
||
|
find_package(realsense2 REQUIRED)
|
||
|
|
||
|
# Enable C++11
|
||
|
set(CMAKE_CXX_STANDARD 11)
|
||
|
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
|
||
|
|
||
|
# Add the application sources to the target
|
||
|
add_executable(${PROJECT_NAME} hello_librealsense2.cpp)
|
||
|
|
||
|
# Link librealsense2 to the target
|
||
|
target_link_libraries(${PROJECT_NAME} ${realsense2_LIBRARY})
|