Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

isl-org/open3d-cmake-external-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moved to the Open3D repo

See the main Open3D repo for an updated example.

Use Open3D as a CMake External Project

This is one of the two CMake examples showing how to use Open3D in your CMake project:

For more details, check out the Open3D repo and Open3D docs.

Step 1: Install Open3D dependencies

On Ubuntu:

# Install minimal Open3D compilation dependencies. For the full list, checkout:
# https://github.com/intel-isl/Open3D/blob/master/util/install_deps_ubuntu.sh
sudo apt-get --yes install xorg-dev libglu1-mesa-dev

On macOS/Windows:

# Skip this step

Step 2: Use Open3D in this example project

You can specify the number of parallel jobs to speed up compilation.

On Ubuntu/macOS:

git clone https://github.com/intel-isl/open3d-cmake-external-project.git
cd open3d-cmake-external-project
mkdir build
cd build
cmake ..
make -j 12
./Draw

On Windows:

git clone https://github.com/intel-isl/open3d-cmake-external-project.git
cd open3d-cmake-external-project
mkdir build
cd build
cmake ..
cmake --build . --config Release --parallel 12
Release\Draw