CMakeLists.txt 1.07 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)
34 35 36 37

# TODO

# Call OTB
38 39 40 41

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

42
include(External_OTB)
43 44 45

# DEBUG:
# impose to build OTB after all dependencies
46
add_dependencies(OSSIM GDAL)
47

48 49 50
option(BUILD_ICE_APPLICATION "Build the Ice application (requires glfw and glut)" OFF)

include(External_Ice)
51 52