CMakeLists.txt 941 Bytes
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_openthread)
16
include(External_jpeg)
17
include(External_SQLite)
18 19 20 21 22 23 24 25 26
include(External_zlib)
include(External_libtiff)
include(External_proj4)
include(External_geotiff)
include(External_geos)
include(External_ITK)
include(External_ossim)
include(External_OpenJpeg)
include(External_GDAL)
27
include(External_muParser)
28
include(External_muParserX)
29
include(External_TinyXML)
30 31
include(External_expat)
include(External_libKML)
32 33 34 35

# TODO

# Call OTB
36 37 38 39

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

40
include(External_OTB)
41 42 43

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