diff --git a/Packaging/CMakeLists.txt b/Packaging/CMakeLists.txt index 795f9d140ef491fabf2553564c10c6c712c2c631..a8d5c1658b8e4ee45863b2d50c8c0f2bbb4c8f26 100644 --- a/Packaging/CMakeLists.txt +++ b/Packaging/CMakeLists.txt @@ -221,3 +221,9 @@ if(BUILD_TESTING) enable_testing() include(testing.cmake) endif() + +add_custom_target( PACKAGE-OTB + COMMAND "${CMAKE_COMMAND}" --build . --target install + WORKING_DIRECTORY "${CMAKE_BINARY_DIR}" + COMMENT "PACKAGE-OTB" + ) \ No newline at end of file