CMakeLists.txt 384 Bytes
Newer Older
1
2
3

find_package(OTB REQUIRED)
include(${OTB_USE_FILE})
4

5
add_executable(completionGenerator EXCLUDE_FROM_ALL completionGenerator.cxx)
6
7
8
9
10
11
12
13
target_link_libraries(completionGenerator ${OTB_LIBRARIES})

add_custom_target(generate-completion
    COMMAND bin/completionGenerator lib/otb/applications otbcli_completion
    DEPENDS completionGenerator
    WORKING_DIRECTORY ${OTB_BINARY_DIR}
    )