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

Atwood, Robert C r.atwood at imperial.ac.uk
Fri Sep 14 07:30:15 EDT 2007


 *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
> 


More information about the CMake mailing list