Forwarding the solution to the list for posterity.


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

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!



From: Daniel Crispell []
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:





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?





On Tue, Feb 7, 2012 at 5:57 PM, Gregory Brunner <> 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:










#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 )




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?




From: Daniel Crispell []
Sent: Tuesday, February 07, 2012 4:35 PM
To: Gregory Brunner
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)? 




On Tue, Feb 7, 2012 at 5:26 PM, Gregory Brunner <> 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?



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!
Vxl-users mailing list