Commit e87b29ca authored by Simon Boyé's avatar Simon Boyé

Added per-patate examples build target. The target examples still works as before.

parent 2400405d
......@@ -7,4 +7,8 @@ include_directories(${CMAKE_SOURCE_DIR})
add_custom_target(examples)
add_subdirectory(Grenaille)
add_dependencies(examples grenaille_examples)
add_subdirectory(Vitelotte)
add_dependencies(examples vitelotte_examples)
OPTION(CompilePCLExample "CompilePCLExample" OFF)
add_custom_target(grenaille_examples)
add_subdirectory(cpp)
if(CompilePCLExample)
......
......@@ -8,16 +8,17 @@ set(grenaille_basic_SRCS
grenaille_basic_cpu.cpp
)
add_executable(grenaille_basic_cpu ${grenaille_basic_SRCS})
add_dependencies(examples grenaille_basic_cpu)
add_dependencies(grenaille_examples grenaille_basic_cpu)
set(grenaille_fit_plane_SRCS
grenaille_fit_plane.cpp
)
add_executable(grenaille_fit_plane ${grenaille_fit_plane_SRCS})
add_dependencies(examples grenaille_fit_plane)
add_dependencies(grenaille_examples grenaille_fit_plane)
set(grenaille_binding_SRCS
grenaille_binding.cpp
)
add_executable(grenaille_binding ${grenaille_binding_SRCS})
add_dependencies(examples grenaille_binding)
add_dependencies(grenaille_examples grenaille_binding)
......@@ -14,4 +14,5 @@ set(pcl_wrapper_SRCS
add_executable(pcl_wrapper ${pcl_wrapper_SRCS})
target_link_libraries(pcl_wrapper ${PCL_LIBRARIES})
add_dependencies(examples pcl_wrapper)
add_dependencies(grenaille_examples pcl_wrapper)
......@@ -2,9 +2,12 @@ project(VitelotteExamples)
cmake_minimum_required(VERSION 2.8)
add_custom_target(vitelotte_examples)
add_subdirectory(common)
add_subdirectory(mvgtk)
add_subdirectory(mvg_viewer)
add_subdirectory(mvg_editor)
add_subdirectory(tutorial)
......@@ -35,5 +35,6 @@ set(vitelotte_examples_common_SRCS
add_library(vitelotte_examples_common
${vitelotte_examples_common_SRCS}
)
add_dependencies(examples vitelotte_examples_common)
add_dependencies(vitelotte_examples vitelotte_examples_common)
add_dependencies(vitelotte_examples_common vitelottes_vg_mesh_renderer_shaders)
......@@ -55,7 +55,7 @@ if(NOT mvg_editor_MISSING)
add_executable(mvg_editor
${mvg_editor_SRCS}
)
add_dependencies(examples mvg_editor)
add_dependencies(vitelotte_examples mvg_editor)
add_dependencies(mvg_editor vitelottes_vg_mesh_renderer_shaders)
target_link_libraries(mvg_editor
......@@ -68,3 +68,4 @@ if(NOT mvg_editor_MISSING)
else()
message(WARNING "Skipping mvg_editor because of the following missing dependencies:${mvg_editor_MISSING}")
endif()
......@@ -41,7 +41,7 @@ if(NOT mvg_viewer_MISSING)
mvgViewer.cpp
)
add_executable(mvg_viewer ${mvg_viewer_SRCS})
add_dependencies(examples mvg_viewer)
add_dependencies(vitelotte_examples mvg_viewer)
add_dependencies(mvg_viewer vitelottes_vg_mesh_renderer_shaders)
target_link_libraries(mvg_viewer
......@@ -53,4 +53,3 @@ else()
message(WARNING "Skipping mvg_viewer because of the following missing dependencies:${mvg_viewer_MISSING}")
endif()
......@@ -28,8 +28,9 @@ set(vitelotte_mvgtk_SRCS
main.cpp
)
add_executable(mvgtk ${vitelotte_mvgtk_SRCS})
add_dependencies(examples mvgtk)
add_dependencies(vitelotte_examples mvgtk)
target_link_libraries(mvgtk
vitelotte_examples_common
)
......@@ -21,4 +21,5 @@ set(vitelotte_tutorial_SRCS
tutorial.cpp
)
add_executable(tutorial ${vitelotte_tutorial_SRCS})
add_dependencies(examples tutorial)
add_dependencies(vitelotte_examples tutorial)
/*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
......@@ -9,18 +9,18 @@
1. Using the Patate library
***************************
There is no need to compile this library to use it. Simply add the Patate/ directory to your include path.
There is no need to compile this library to use it. Simply add the Patate/ directory to your include path.
The only required dependency is on the Eigen library for linear algebra, vectors and matrices purposes.
A significant portion of the library is also CUDA-compatible, please refer to the documentation for details.
The Patate library is divided into modules (a.k.a. "patates"), and you may include each of them separately.
The Patate library is divided into modules (a.k.a. "patates"), and you may include each of them separately.
The best way to find out how to use a module is to start from tutorials provided in the documentation.
Various examples are also documented and their source code provided in the examples/ directory.
Further sections explain how to build the documentation and compile the examples.
An online version of the documentation for the last release is also available at
An online version of the documentation for the last release is also available at
http://patate.gforge.inria.fr/html/
For more information
For more information
2. Building the documentation
......@@ -47,5 +47,6 @@ To compile examples, use the following command from the build/ directory:
The example binaries will then be found in the build/examples/ directory.
If you want to compile examples of a single module, you can use the targets <module>_examples:
make grenaille_examples
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment