Last active
December 1, 2015 18:03
-
-
Save UnaNancyOwen/c1148bb1a9d39a43f31b to your computer and use it in GitHub Desktop.
CMakeLists.txt for PCL + Kinect2Grabber
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CMake | |
cmake_minimum_required(VERSION 2.8 FATAL_ERROR) | |
# Solution | |
project(solution) | |
# Project | |
set(HEADER kinect2_grabber.h) | |
set(SOURCE main.cpp) | |
add_executable(project ${HEADER} ${SOURCE}) | |
# Non Default Install | |
#set(PCL_DIR "$ENV{PCL_ROOT}/cmake" CACHE FILEPATH "The directory containing a CMake configuration file for PCL." ) | |
# Find Package | |
find_package(PCL 1.7 REQUIRED) | |
# Additional Include Directories | |
include_directories(${PCL_INCLUDE_DIRS}) | |
include_directories($ENV{KINECTSDK20_DIR}/inc) | |
# Additional Library Directories | |
link_directories(${PCL_LIBRARY_DIRS}) | |
link_directories($ENV{KINECTSDK20_DIR}/Lib/$(PlatformTarget)) | |
# Preprocessor Definitions | |
add_definitions(${PCL_DEFINITIONS}) | |
# Additional Dependencies | |
target_link_libraries(project ${PCL_LIBRARIES}) | |
target_link_libraries(project Kinect20.lib) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment