-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need an easy to find example of CMakeLists.txt file #2847
Comments
I think that you're looking for something more like this below, which it works at least for version 0.9.0
|
Thank you for responding. There are still some issues.
is equivalent to:
but none of them covers
|
I'm also curious about |
I might say that is something of style, i personally use the one provided on the recipe that I sent. Also using target_include_libraries automatically infers the folder whereas include_directories is set in a stone, but if you provide the "correct" folder, it would work for your system, but not necessarily across platforms or different versions of OS. Also, 3rdparty folders are mainly created to compile the library, in this case Open3D, and not to have additional libraries installed in your system. Even though once you install open3d some libraries might get installed such as That being say, it would be nice if in the documentation there is a small example of CMakeLists of your own project. Hope that helps! |
Two example CMake projects for building your code with Open3D are available here: |
I had a bit of difficulty trying to set up a simple C++ project on Linux. I followed the default installation procedure.
The documentation at http://www.open3d.org/docs/release/cpp_project.html mentions a
CMakeLists.txt
, but that link doesn't work on my browser. The filesOpen3D/CMakeLists.txt
,Open3D/cpp/CMakeLists.txt
andOpen3D/examples/cpp/CMakeLists.txt
didn't help.I used:
but I expected that including
/usr/local/include/open3d/3rdparty
will not be necessary. Am I missing something?The text was updated successfully, but these errors were encountered: