Text archives Help
- From: Kristen Zygmunt <krismz@sci.utah.edu>
- To: seg3d@sci.utah.edu
- Subject: [Seg3D] Re: Re: Re: adding an external library to Seg3D
- Date: Fri, 16 Oct 2009 17:54:19 -0600
On Oct 16, 2009, at 3:31 PM, Ramón Casero Cañas wrote: Kristen Zygmunt wrote: Note: I think the recommended CMake way to do the above is to actually create a FindQWT.cmake module, but this seems like overkill. However, there may be one that already exists somewhere. If so, theoretically you could do a FIND_PACKAGE(QWT) then instead of the above.
You are right, there seems to be one in the KDE project http://lists.kde.org/?l=kde-bindings&m=118232160016820&q=p3
I have just learned that there is a SCIRun/src/CMake directory that contains custom cmake modules, so you can put the FindQWT.cmake module in this directory. The SCIRun/src/CMakeLists.txt adds this directory to the module path so that its contents will be accessible. Um, this could simplify things, right?
It should if the module's written well. You'll still need to do include_directories and target_link_libraries, but you would do find_package instead of find_paths and find_library. You would have to set less variables yourself as well.
Good luck! Kris
|
Archive powered by MHonArc 2.6.16.