diff options
author | Luis Ibanez <luis.ibanez@kitware.com> | 2002-03-29 23:07:01 (GMT) |
---|---|---|
committer | Luis Ibanez <luis.ibanez@kitware.com> | 2002-03-29 23:07:01 (GMT) |
commit | 701f0d6413275a0c017ab356c56a946c17076b43 (patch) | |
tree | 503a0d2735563ca141267fecffe8ae597ac6bdd8 /Modules/FindFLTK.cmake | |
parent | dbe20d8d3bb39cde24eccc87693a45626bdb1cee (diff) | |
download | CMake-701f0d6413275a0c017ab356c56a946c17076b43.zip CMake-701f0d6413275a0c017ab356c56a946c17076b43.tar.gz CMake-701f0d6413275a0c017ab356c56a946c17076b43.tar.bz2 |
ENH: HAS_FLTK variable added. FLTK_WRAP_UI command made INTERNAL.
Diffstat (limited to 'Modules/FindFLTK.cmake')
-rw-r--r-- | Modules/FindFLTK.cmake | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/Modules/FindFLTK.cmake b/Modules/FindFLTK.cmake index 6aa4b14..812ec42 100644 --- a/Modules/FindFLTK.cmake +++ b/Modules/FindFLTK.cmake @@ -22,11 +22,21 @@ ${path} ) IF (FLTK_FLUID_EXE) - SET ( FLTK_WRAP_UI 1 CACHE BOOL "Can we honour the FLTK_WRAP_UI command" ) + SET ( FLTK_WRAP_UI 1 CACHE INTERNAL "Can we honour the FLTK_WRAP_UI command" ) ENDIF (FLTK_FLUID_EXE) -MARK_AS_ADVANCED( - FLTK_INCLUDE_PATH - FLTK_LIBRARY - FLTK_FLUID_EXE -)
\ No newline at end of file + +# +# Set HAS_FLTK +# This is the final flag that will be checked by +# other code that requires FLTK for compile/run. +# +IF(FLTK_FLUID_EXE) + IF(FLTK_INCLUDE_PATH) + IF(FLTK_LIBRARY) + SET (HAS_FLTK 1 CACHE INTERNAL "FLTK library, headers and Fluid are available") + ENDIF(FLTK_LIBRARY) + ENDIF(FLTK_INCLUDE_PATH) +ENDIF(FLTK_FLUID_EXE) + + |