Last active
July 1, 2016 16:13
-
-
Save ymremio/569314c7cda2b14e1a28fcd8584e4239 to your computer and use it in GitHub Desktop.
基本的な、PCLを使用したプロジェクトに対するCMakeLists.txtの書き方
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_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