Fabio,

To use VXL in your own project you will need a line like this in your projects CMakeLists.txt

find_package(VXL REQUIRED)

The imesh library is in the Brown University contrib section of VXL, so you will need to make sure you've built VXL with "BUILD_BRL" set to "ON".  To use imesh in your project you will need to tell CMake where to find the headers in your CMakeLists.txt like this

include_directories( ${VXL_BRL_INCLUDE_DIR}/bbas )

Then you can include the headers in your source code like this

#include <imesh/imesh_mesh.h>

An example of a project that depends on VXL and uses imesh is my PhD thesis code which you can find here: 

http://gitorious.org/vehicle3d/vehicle3d/trees/master

I wrote imesh as a grad student for this and other project.  imesh is one of the few libraries in contrib/brl that I still use regularly.  It might be worth promoting this to VXL core in future releases if there are others using it besides me.

Good Luck,
Matt


On Mar 8, 2013, at 11:47 AM, Fabio Ivona <ziobafio@gmail.com> wrote:

Hi everyone!

I wish to use vxl in my project, using this classes:

contrib/brl/bbas/imesh/imesh_mesh
contrib/brl/bbas/imesh/imesh_vertex
contrib/brl/bbas/imesh/imesh_face


My project has a CMakeList.txt file in which I include also PCL libraries, here is the file's content

--------------------------------------------------------------------------------------------------------------------
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)

project(MyProject)

find_package(PCL 1.2 REQUIRED)

include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})

add_executable (MyProject MainClass.cpp)

target_link_libraries (MyProject ${PCL_LIBRARIES})
--------------------------------------------------------------------------------------------------------------------


I'm not so good with cmake, so my question is: 

How should I modify my CMakeList.txt file in order to include imesh_mesh, imesh_vertex, imesh_face in my project?

I have tried following vxl documentation, but I couldn't manage to have my project work properly.


Thanks for your help!


Fabio
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev_______________________________________________
Vxl-users mailing list
Vxl-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vxl-users