Created
September 10, 2017 15:06
-
-
Save cashiwamochi/32e162b2bc4051f7cf599a3b5f1138b3 to your computer and use it in GitHub Desktop.
CMakeLists for simple_triangulation.cc. (I THINK THAT)PCL viewer is available only if you compiled PCL with pcl_visualization module. In order to do it, i need to build and install VTK8.
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
# minimum version of CMake | |
cmake_minimum_required(VERSION 2.8 FATAL_ERROR) | |
project(triangulation) | |
set(CMAKE_CXX_COMPILER g++) | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") | |
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake") | |
set(OpenCV_DIR "~/.local/OpenCV33/share/OpenCV") | |
find_package(OpenCV REQUIRED) | |
IF (OpenCV_FOUND) | |
message([message] OpenCV_VER:${OpenCV_VERSION}) | |
include_directories(${OpenCV_INCLUDE_DIRS}) | |
link_directories(${OpenCV_LIBRARY_DIRS}) | |
add_definitions(${OpenCV_DEFINITIONS}) | |
ENDIF() | |
set(PCL_DIR "~/.local/PCL1-8/share/pcl-1.8/") | |
find_package(PCL REQUIRED) | |
include_directories(${PCL_INCLUDE_DIRS}) | |
link_directories(${PCL_LIBRARY_DIRS}) | |
add_definitions(${PCL_DEFINITIONS}) | |
add_executable( | |
triangulation | |
simple_triangulation.cc | |
) | |
target_link_libraries( | |
triangulation | |
${OpenCV_LIBS} | |
${PCL_LIBRARIES} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment