Skip to content

Instantly share code, notes, and snippets.

@ymremio
Last active July 1, 2016 16:13
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 ymremio/569314c7cda2b14e1a28fcd8584e4239 to your computer and use it in GitHub Desktop.
Save ymremio/569314c7cda2b14e1a28fcd8584e4239 to your computer and use it in GitHub Desktop.
基本的な、PCLを使用したプロジェクトに対するCMakeLists.txtの書き方
cmake_minimum_required( VERSION 2.8 )
project( {プロジェクト名} )
add_executable( {プロジェクト名} {プロジェクト名}.cpp )
find_package( PCL 1.8 REQUIRED)
if( PCL_FOUND )
include_directories( ${PCL_INCLUDE_DIRS} )
add_definitions( ${PCL_DEFINITIONS} )
link_directories( ${PCL_LIBRARY_DIRS} )
target_link_libraries( {プロジェクト名} ${PCL_LIBRARIES} )
endif()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment