CMakeLists.txt 1.22 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

# Call external projects
15 16


17
include(External_jpeg)
18
include(External_SQLite)
19 20 21 22 23
include(External_zlib)
include(External_libtiff)
include(External_proj4)
include(External_geotiff)
include(External_geos)
24
include(External_fftw)
25
include(External_OpenJpeg)
26
include(External_muParser)
27
include(External_muParserX)
28
include(External_TinyXML)
29
include(External_expat)
30 31 32 33 34
if(UNIX)
include(External_boost)
endif()
include(External_libKML)
include(External_curl)
35
include(External_GDAL)
36 37 38 39 40 41
# TODO: skip boost headers from gdal includes
# move sub-dependencies into proper parent dependency.

if(MSVC) 
include(External_boost)
endif()
42
include(External_ITK)
43
include(External_openthread)
44
include(External_ossim)
Guillaume Pasero's avatar
Guillaume Pasero committed
45
include(External_OpenCV)
46

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 62