Commit 8845e116 authored by Thomas Feuvrier's avatar Thomas Feuvrier
Browse files

MAJ des CMakeLists.txt avec l'ajour de l'option OTB_USE_VISU permettant de...

MAJ des CMakeLists.txt avec l'ajour de l'option OTB_USE_VISU permettant de compiler ou non le module de visu. Si OFF, OpenGL et FLTK ne sont pas nécessaire et donc pas recherchés par FIND_PACKAGE.
parent 062a564c
......@@ -58,14 +58,6 @@ SET(OTB_VERSION_STRING "${OTB_VERSION_MAJOR}.${OTB_VERSION_MINOR}")
#-----------------------------------------------------------------------------
# RECHERCHE DES LIBRAIRIES EXTERNES UTILISEES
#-------------------------------
# Librairie OpenGL
#-------------------------------
FIND_PACKAGE(OpenGL)
IF(OPENGL_INCLUDE_PATH)
INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_PATH})
ENDIF(OPENGL_INCLUDE_PATH)
#-------------------------------
# Librairie ITK
#-------------------------------
......@@ -102,20 +94,37 @@ INCLUDE_DIRECTORIES(${GDAL_INCLUDE_DIRS})
LINK_DIRECTORIES( ${GDAL_LIBRARY_DIRS} )
#-----------------------------------------------------------------------------
# Option for generate Visu tools !!!
OPTION(OTB_USE_VISU "Generate Visu tools directory. If ON, find OpenGL and FLTK package." ON)
MARK_AS_ADVANCED(OTB_USE_VISU)
IF(OTB_USE_VISU)
#-------------------------------
# Librairie OpenGL
#-------------------------------
FIND_PACKAGE(OpenGL)
IF(OPENGL_INCLUDE_PATH)
INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_PATH})
ENDIF(OPENGL_INCLUDE_PATH)
#-------------------------------
# Librairie FLTK
#-------------------------------
# Add an option to use or not use FLTK (http://www.fltk.org)
#-------------------------------
# Librairie FLTK
#-------------------------------
# Add an option to use or not use FLTK (http://www.fltk.org)
FIND_PACKAGE(FLTK)
IF(FLTK_FOUND)
# INCLUDE(${FLTK_USE_FILE})
FIND_PACKAGE(FLTK)
IF(FLTK_FOUND)
# INCLUDE(${FLTK_USE_FILE})
INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})
ELSE(FLTK_FOUND)
ELSE(FLTK_FOUND)
MESSAGE(FATAL_ERROR
"Cannot build OTB project without FLTK. Please set FLTK_DIR.")
ENDIF(FLTK_FOUND)
"Cannot build OTB project without FLTK. Please set FLTK_DIR or set OTB_USE_VISU to OFF.")
ENDIF(FLTK_FOUND)
ENDIF(OTB_USE_VISU)
#-------------------------------
# End connections whith external libraries
......
SUBDIRS(Common BasicFilters IO ChangeDetection FeatureExtraction
Learning Visu)
SUBDIRS(Common BasicFilters IO ChangeDetection FeatureExtraction Learning )
IF(OTB_USE_VISU)
SUBDIRS(Visu)
ENDIF(OTB_USE_VISU)
......@@ -7,13 +7,16 @@ SUBDIRS(
IO
Filtering
ChangeDetection
Visu
Learning
Classification
Segmentation
Iterators
)
IF(OTB_USE_VISU)
SUBDIRS(Visu)
ENDIF(OTB_USE_VISU)
IF(OTB_USE_PATENTED)
SUBDIRS( Patented )
ENDIF(OTB_USE_PATENTED)
......
# $Id$
SUBDIRS(Common IO BasicFilters FeatureExtraction ChangeDetection Visu Learning)
SUBDIRS(Common IO BasicFilters FeatureExtraction ChangeDetection Learning)
IF(OTB_USE_VISU)
SUBDIRS(Visu)
ENDIF(OTB_USE_VISU)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment