Skip to content

Instantly share code, notes, and snippets.

@kevinhughes27
Created April 4, 2013 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinhughes27/5311651 to your computer and use it in GitHub Desktop.
Save kevinhughes27/5311651 to your computer and use it in GitHub Desktop.
PCL CMake File
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
project(HelloWorld)
set(EXE HelloWorld)
find_package(PCL 1.6 REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations")
# SRC
SET (SRC main.cpp
other.cpp )
# BUILD
add_executable (EXE ${SRC})
target_link_libraries (EXE ${PCL_LIBRARIES})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment