[Cmake] FindFLTK.cmake
Filipe Sousa
filipe . gr . sousa at alunos . ipb . pt
Fri, 21 Mar 2003 22:58:53 +0000
On Friday 21 March 2003 09:43, Stefan Schmidt wrote:
> Hi,
>
> Using CMake 1.6.5 (same goes for CVS version), I have some trouble using
> FindFLTK.cmake when FLTK is _installed_ in a nonstandard location. I set
> FLTK_INCLUDE_DIR to its include directory (i.e. $HOME/fltk/include), but
> the find tries to search the libraries in include/lib/:
>
> FIND_LIBRARY(FLTK_BASE_LIBRARY NAMES fltk fltkd
> PATHS /usr/lib /usr/local/lib
> /usr/local/fltk/lib
> /usr/X11R6/lib ${FLTK_INCLUDE_DIR}/lib
> )
>
> This mechanism might work for the build directory of FLTK, but not for an
> installed version.
>
> Can this be fixed, please?
>
> Kind regards,
> Stefan
>
> _______________________________________________
> Cmake mailing list
> Cmake at public . kitware . com
> http://public . kitware . com/mailman/listinfo/cmake
You could copy FindFLTK.cmake to your project (e.g. Modules directory or any
other directory) and change it to your needs, you only need to do something
link this in your primary CMakeLists.txt
PROJECT(hello)
SET(CMAKE_MODULE_PATH ${hello_SOURCE_DIR}/Modules)
FIND_PACKAGE(FLTK)
...
--
Filipe Sousa