CMakeLists.txt 1.12 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
include(External_boost)
16
include(External_openthread)
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 26 27
include(External_ITK)
include(External_ossim)
include(External_OpenJpeg)
28
include(External_muParser)
29
include(External_muParserX)
30
include(External_TinyXML)
31 32
include(External_expat)
include(External_libKML)
33
include(External_GDAL)
Guillaume Pasero's avatar
Guillaume Pasero committed
34
include(External_OpenCV)
Guillaume Pasero's avatar
Guillaume Pasero committed
35
include(External_curl)
36 37 38 39

# TODO

# Call OTB
40 41 42 43

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

44
include(External_OTB)
45 46 47

# DEBUG:
# impose to build OTB after all dependencies
48
add_dependencies(OSSIM GDAL)
49

50 51 52
option(BUILD_ICE_APPLICATION "Build the Ice application (requires glfw and glut)" OFF)

include(External_Ice)
53 54