CMakeLists.txt 1.17 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
include(External_GDAL)
31
include(External_ITK)
32
include(External_openthread)
33 34 35
include(External_ossim)
include(External_libKML)
include(External_boost)
Guillaume Pasero's avatar
Guillaume Pasero committed
36
include(External_OpenCV)
Guillaume Pasero's avatar
Guillaume Pasero committed
37
include(External_curl)
38 39 40 41

# TODO

# Call OTB
42 43 44 45

# 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)

46
include(External_OTB)
47 48 49

# DEBUG:
# impose to build OTB after all dependencies
50 51 52
message(STATUS "OTB DEPENDENCIES ${OTB_DEPS}")

#add_dependencies(OTB ${OTB_DEPS})
53

54 55 56
option(BUILD_ICE_APPLICATION "Build the Ice application (requires glfw and glut)" OFF)

include(External_Ice)
57 58