CMakeLists.txt 1.35 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
cmake_minimum_required(VERSION 2.8.3)


project(OTB-SuperBuild)

# Path to additional CMake modules
set(CMAKE_MODULE_PATH
    ${CMAKE_SOURCE_DIR}/CMake
    ${CMAKE_MODULE_PATH})

include(ExternalProject)
12
include(CTest)
13

14 15 16 17
if(WIN32)
  if(MSVC)
    set(SB_CMAKE_COMMAND ${CMAKE_COMMAND})
  endif()      
Rashad Kanavath's avatar
MRG  
Rashad Kanavath committed
18
else(UNIX)
19
  set(SB_CMAKE_COMMAND env LD_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/lib  ${CMAKE_COMMAND})
Rashad Kanavath's avatar
MRG  
Rashad Kanavath committed
20
endif()
21
# Call external projects
22

Rashad Kanavath's avatar
MRG  
Rashad Kanavath committed
23
#TODO: enforce check from ITK on directory length
24

25
include(External_zlib)
Rashad Kanavath's avatar
MRG  
Rashad Kanavath committed
26 27 28
include(External_jpeg)
include(External_expat)
include(External_libpng)
29 30 31
include(External_libtiff)
include(External_proj4)
include(External_geotiff)
Rashad Kanavath's avatar
MRG  
Rashad Kanavath committed
32
include(External_SQLite)
33 34
include(External_geos)
include(External_OpenJpeg)
35 36 37
include(External_boost)
include(External_libKML)
include(External_curl)
38
include(External_GDAL)
Rashad Kanavath's avatar
MRG  
Rashad Kanavath committed
39
include(External_fftw)
40
include(External_ITK)
Rashad Kanavath's avatar
MRG  
Rashad Kanavath committed
41
include(External_OpenThreads)
42
include(External_ossim)
Rashad Kanavath's avatar
MRG  
Rashad Kanavath committed
43 44 45
include(External_muParser)
include(External_muParserX)
include(External_TinyXML)
Guillaume Pasero's avatar
Guillaume Pasero committed
46
include(External_OpenCV)
Guillaume Pasero's avatar
Guillaume Pasero committed
47
include(External_qt4)
48 49 50 51

# TODO

# Call OTB
52 53 54 55

# set OTB_DATA_ROOT to run test
find_path(OTB_DATA_ROOT README-OTB-Data PATHS $ENV{OTB_DATA_ROOT} ${OTB-SuperBuild_SOURCE_DIR}/../OTB-Data)

56
include(External_OTB)
57

58 59 60
option(BUILD_ICE_APPLICATION "Build the Ice application (requires glfw and glut)" OFF)

include(External_Ice)
61

Rashad Kanavath's avatar
Rashad Kanavath committed
62
include(External_Monteverdi2)
63