Skip to content
Snippets Groups Projects
Commit fa0f1b3c authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

Modification pour trouver GDAL et FLTK sur Debian standard (Mise a jour pour...

Modification pour trouver GDAL et FLTK sur Debian standard (Mise a jour pour compatibilité autres plateformes TODO: confirmer)
parent ec2af780
No related branches found
No related tags found
No related merge requests found
......@@ -122,11 +122,18 @@ IF(OTB_USE_VISU_GUI)
#-------------------------------
# Add an option to use or not use FLTK (http://www.fltk.org)
SET( FLTK_INCLUDE_DIR /usr/include )
# SET(CMAKE_MODULE_PATH "/usr/share/CMake")
# SET( FLTK_INCLUDE_DIR /usr/include )
FIND_PACKAGE(FLTK)
IF (NOT FLTK_INCLUDE_DIR)
SET( FLTK_INCLUDE_DIR /usr/include )
FIND_PACKAGE(FLTK)
ENDIF(NOT FLTK_INCLUDE_DIR)
IF(FLTK_FOUND)
INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIRS})
LINK_DIRECTORIES(${FLTK_LIBRARY_DIRS})
INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIRS})
LINK_DIRECTORIES(${FLTK_LIBRARY_DIRS})
ELSE(FLTK_FOUND)
MESSAGE(FATAL_ERROR
"Cannot build OTB project without FLTK. Please set FLTK_DIR or set OTB_USE_VISU to OFF.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment