Repository: opencv
Issue: libade.a does not get installed, but referenced in OpenCVModules.cmake with static build
Labels: duplicate,category: build/install

<!--
If you have a question rather than reporting a bug please go to https://forum.opencv.org where you get much faster responses.
If you need further assistance please read [How To Contribute](https://github.com/opencv/opencv/wiki/How_to_contribute).

This is a template helping you to create an issue which can be processed as quickly as possible. This is the bug reporting section for the OpenCV library.
-->

##### System information (version)
<!-- Example
- OpenCV => 4.2
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2017
-->

- OpenCV => master
- Operating System / Platform => ubuntu 16.04
- Compiler => gcc 9

##### Detailed description

The installed `OpenCVModules.cmake` file refers to `ade` target, which is supposedly installed in `DownloadADE.cmake` during static build. However, the file does not show up in `/usr/local/lib/opencv4/3rdparty` where the other 3rd party libs live.


##### Steps to reproduce
```
cmake -DBUILD_LIST=core,imgproc,highgui,calib3d .. \
-DENABLE_PRECOMPILED_HEADERS=OFF \
-DBUILD_features2d=OFF \
-DBUILD_gapi=OFF \
-DBUILD_java_bindings_gen=OFF \
-DBUILD_ml=OFF \
-DBUILD_objdetect=OFF \
-DBUILD_photo=OFF \
-DBUILD_video=OFF \
-DBUILD_videoio=OFF \
-DBUILD_opencv_python_bindings_generator=OFF \
-DBUILD_ZLIB=OFF \
-DBUILD_TIFF=OFF \
-DBUILD_JASPER=OFF \
-DBUILD_JPEG=ON \
-DBUILD_PNG=OFF \
-DBUILD_OPENEXR=OFF \
-DBUILD_WEBP=OFF \
-DBUILD_IPP_IW=OFF \
-DBUILD_ITT=OFF \
-DWITH_AVFOUNDATION=OFF \
-DWITH_CUDA=OFF \
-DWITH_EIGEN=ON \
-DWITH_FFMPEG=OFF \
-DWITH_GSTREAMER=OFF \
-DWITH_VTK=OFF \
-DWITH_GTK=ON \
-DWITH_GTK_2_X=OFF \
-DWITH_IPP=OFF \
-DWITH_JASPER=OFF \
-DWITH_JPEG=ON \
-DWITH_WEBP=OFF \
-DWITH_OPENMP=ON \
-DMKL_WITH_OPENMP=ON \
-DWITH_OPENEXR=OFF \
-DWITH_OPENNI=OFF \
-DWITH_OPENNI2=OFF \
-DWITH_TIFF=OFF \
-DWITH_V4L=OFF \
-DWITH_OPENCLAMDFFT=OFF \
-DWITH_OPENCLAMDBLAS=OFF \
-DWITH_PROTOBUF=OFF \
-DWITH_IMGCODEC_HDR=OFF \
-DWITH_IMGCODEC_SUNRASTER=OFF \
-DWITH_IMGCODEC_PFM=OFF \
-DWITH_QUIRC=OFF \
-DBUILD_opencv_apps=OFF \
-DBUILD_opencv_js=OFF \
-DBUILD_PERF_TESTS=OFF \
-DBUILD_TESTS=OFF \
-DBUILD_JAVA=OFF \
-DBUILD_opencv_python2=OFF \
-DBUILD_opencv_python3=OFF \
-DBUILD_SHARED_LIBS=OFF
```
Then `make install` it, try to find `libade.a` in the installation prefix. It's not there, and client cmake projects fail with 
```
CMake Error at /usr/local/lib/cmake/opencv4/OpenCVModules.cmake:150 (message):
  The imported target "ade" references the file

     "/usr/local/lib/opencv4/3rdparty/libade.a"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/local/lib/cmake/opencv4/OpenCVModules.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/local/lib/cmake/opencv4/OpenCVConfig.cmake:126 (include)
  CMakeLists.txt:581 (find_package)
```

<!-- to add code example fence it with triple backticks and optional file extension
    ```.cpp
    // C++ code example
    ```
 or attach as .txt or .zip file
-->

##### Issue submission checklist

 - [x] I report the issue, it's not a question
   <!--
   OpenCV team works with forum.opencv.org, Stack Overflow and other communities
   to discuss problems. Tickets with question without real issue statement will be
   closed.
   -->
 - [x] I checked the problem with documentation, FAQ, open issues,
       forum.opencv.org, Stack Overflow, etc and have not found solution
   <!--
   Places to check:
   * OpenCV documentation: https://docs.opencv.org
   * FAQ page: https://github.com/opencv/opencv/wiki/FAQ
   * OpenCV forum: https://forum.opencv.org
   * OpenCV issue tracker: https://github.com/opencv/opencv/issues?q=is%3Aissue
   * Stack Overflow branch: https://stackoverflow.com/questions/tagged/opencv
   -->
 - [x] I updated to latest OpenCV version and the issue is still there
   <!--
   master branch for OpenCV 4.x and 3.4 branch for OpenCV 3.x releases.
   OpenCV team supports only latest release for each branch.
   The ticket is closed, if the problem is not reproduced with modern version.
   -->
 - [x] There is reproducer code and related data files: videos, images, onnx, etc
   <!--
   The best reproducer -- test case for OpenCV that we can add to the library.
   Recommendations for media files and binary files:
   * Try to reproduce the issue with images and videos in opencv_extra repository
     to reduce attachment size
   * Use PNG for images, if you report some CV related bug, but not image reader
     issue
   * Attach the image as archive to the ticket, if you report some reader issue.
     Image hosting services compress images and it breaks the repro code.
   * Provide ONNX file for some public model or ONNX file with with random weights,
     if you report ONNX parsing or handling issue. Architecture details diagram
     from netron tool can be very useful too. See https://lutzroeder.github.io/netron/
   -->