Forwarding the solution to the list for posterity.

-Dan

---------- Forwarded message ----------
From: Gregory Brunner <GBrunner@esri.com>
Date: Wed, Feb 8, 2012 at 10:47 AM
Subject: RE: [Vxl-users] include bmdl
To: Daniel Crispell <dancrispell@gmail.com>


Yes! That was very helpful.  I am using the CMake GUI and Visual Studio 2010 on Windows.  Using the two INCLUDE_DIRECTORIES lines that you have in place of my INCLUDE_DIRECTORIES(C:/CODE/vxl/trunk/contrib/brl/) line worked.  The Visual Studio project that CMake was creating were not including any files from brl’s subfolders (I thought it should include all of them…). 

Thank you for your help!

Greg

 

From: Daniel Crispell [mailto:dancrispell@gmail.com]
Sent: Wednesday, February 08, 2012 9:04 AM
To: Gregory Brunner


Subject: Re: [Vxl-users] include bmdl

 

Are you getting a compiler error or a linker error?  I had to add the following lines to my CMakeLists.txt to get a simple program that includes bmdl to compile:

 

INCLUDE_DIRECTORIES(${VXL_BRL_INCLUDE_DIR}/bseg/)

INCLUDE_DIRECTORIES(${VXL_BRL_INCLUDE_DIR}/bbas/)

 

I don't have to add anything special to your CMakeLists.txt to link to the bmdl library, though. Does that help?  I am using linux, so perhaps this is a platform-specific issue?

 

-Dan

 

 

On Tue, Feb 7, 2012 at 5:57 PM, Gregory Brunner <GBrunner@esri.com> wrote:

Yes, I checked the BUILD_BRL option on the CMake GUI and it built.  However, now I am trying to build my own project, and I am following the instructions on B.1.3 Example 3 to build outside of the VXL tree.  My CMake lists currently looks like:

 

PROJECT(vxl_hello_world)

 

FIND_PACKAGE(VXL)

 

IF(VXL_FOUND)

  INCLUDE(C:/CODE/vxl/bin/UseVXL.cmake)

ENDIF(VXL_FOUND)

 

#IF( EXISTS ${vxl_SOURCE_DIR}/contrib/brl/CMakeLists.txt )

#  OPTION(BUILD_BRL "Build the Brown University library package?" YES)

#ENDIF( EXISTS ${vxl_SOURCE_DIR}/contrib/brl/CMakeLists.txt )

 

INCLUDE_DIRECTORIES(C:/CODE/vxl/trunk/contrib/brl/)

 

ADD_EXECUTABLE( greg_vil_test vxlHelloWorld.cpp)

TARGET_LINK_LIBRARIES(greg_vil_test vil vcl vgui bmdl)

 

When I run the CMake GUI, it builds my Visual Studio 2010 project to include the vil, vcl, and vgui directories, but not the the bmdl directories.  What do I have to add to the CmakeLists.txt file to get the bmdl included?

 

Greg

 

From: Daniel Crispell [mailto:dancrispell@gmail.com]
Sent: Tuesday, February 07, 2012 4:35 PM
To: Gregory Brunner
Cc: vxl-users@lists.sourceforge.net
Subject: Re: [Vxl-users] include bmdl

 

Hi Greg,

 

Do you have the "BUILD_BRL" option set in your CMakeCache.txt (or checked in the CMake GUI)? 

 

-Dan

 

On Tue, Feb 7, 2012 at 5:26 PM, Gregory Brunner <GBrunner@esri.com> wrote:

I am trying to build a project that includes bmdl (with CMake and Visual Studio 2010). What do I put in my CMakeLists.txt file so that CMake finds bmdl and includes it in my project?

 

Greg


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Vxl-users mailing list
Vxl-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vxl-users