[CMake] Re: Fltk project, visual studio 2005 (8) -- using FL/Fl.H

Atwood, Robert C r.atwood at imperial.ac.uk
Tue Sep 18 07:29:40 EDT 2007


Is this the right forum to discuss further issues in find-FLTK under
CMake, or should it be moved to the FLTK list or tracker? Thanks

  

Using FLTK that was actually built using Cmake seems to help. However, I
notice that the FLTK-finder locates the intermediate build directory,
rather than the installed files. Pointing FLTK_DIR at the installed
files as suggested by the help does not work, it gives an error that
LOAD_CACHE it cannot find the CMakeCache.txt file, Things work fine
using the intermediate build directory as found by find FLTK, maybe it's
an issue with the help message? 

Working location for FLTK:
FLTK_DIR    D:/utemp/fltk_ms_build
FLTK_FLUID_EXECUTABLE D:/utemp/fltk_ms_build/bin/$(OutDir)/fluid.exe

Installed location which does not seem to work:

FLTK_DIR C:/Program Files/FLTK/lib/FLTK-1.1

This directory contains FLTKConfig.cmake in near-agreement with the help
message for FLTK_DIR, " THe directory containing FLTKConfig.cmake. This
is either the root of the build tree, or PREFIX/lib/fltk for an
installation."

To be pedantic, I tried renameing 'FLTK-1.1' to 'fltk' but of course
this had the same result



> -----Original Message-----
> From: cmake-bounces+r.atwood=imperial.ac.uk at cmake.org 
> [mailto:cmake-bounces+r.atwood=imperial.ac.uk at cmake.org] On 
> Behalf Of Atwood, Robert C
> Sent: 14 September 2007 12:30
> To: Colin D Bennett; cmake at cmake.org
> Subject: RE: [CMake] Re: Fltk project, visual studio 2005 (8) 
> -- using FL/Fl.H
> 
> 
>  *smak self* 
> I swear I thought I tried that permutaion before, but .. It 
> seems to be
> correct now (Ive got a few other microsoft transition errors to deal
> with but that one is gone now!)
> Many thanks!
> 
> 
> Question: why didn't the Cmake  find the fltk directories and 
> libraries?
> I wound up adding the locations of all of them manually. 
> CMakeLists.txt
> contains :
> 
> 
> PROJECT(WIRS)
> 
> FIND_PACKAGE(FLTK)
> IF(FLTK_FOUND)
>   INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})
> ENDIF(FLTK_FOUND)
> 
> INCLUDE_DIRECTORIES(${WIRS_SOURCE_DIR})
> 
> FLTK_WRAP_UI(wirs tabinter.fl)
> ADD_EXECUTABLE(wirs  ${wirs_FLTK_UI_SRCS} wirsMain.cxx calcweights.cxx
> element.cxx eletable.cxx etable.cxx readdata.cxx)
> 
> TARGET_LINK_LIBRARIES(wirs  fltk)
> 
> > -----Original Message-----
> > From: cmake-bounces+r.atwood=imperial.ac.uk at cmake.org 
> > [mailto:cmake-bounces+r.atwood=imperial.ac.uk at cmake.org] On 
> > Behalf Of Colin D Bennett
> > Sent: 13 September 2007 21:11
> > To: cmake at cmake.org
> > Subject: [CMake] Re: Fltk project, visual studio 2005 (8) -- 
> > using FL/Fl.H
> > 
> > Atwood, Robert C wrote:
> > > The tabinter.h file contains:
> > > 
> > > // generated by Fast Light User Interface Designer (fluid) version
> > > 1.0108
> > > 
> > > #ifndef tabinter_h
> > > #define tabinter_h
> > > #include <FL/Fl.H>
> > > ... Etc....
> > > 
> > > I've selected the default for installing FLTK in Windows, 
> C:\Program
> > > Files\FLTK and selected
> > > 
> > > FLTK_INCLUDE_DIR  C:/Program Files/FLTK/include/FL
> > 
> > Try specifying just C:/Program Files/FLTK/include in CMake 
> (leave out
> > the final /FL component, since the #include directive contains a
> > reference to the FL subdirectory).
> > 
> > _______________________________________________
> > CMake mailing list
> > CMake at cmake.org
> > http://www.cmake.org/mailman/listinfo/cmake
> > 
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
> 


More information about the CMake mailing list