Using other Qt modules in loadable extension

I am trying to include the QtConcurrent module into my loadable extension. So far I tried to set find_package(Qt5 COMPONENTS Concurrent REQUIRED) in my module’s CMakeLists file. I know that Slicer does not use this module. I saw that the qt modules used by Slicer are included in \S4\CMake\SlicerBlockFindQtAndCheckVersion.cmake. I do not want to change anything in the Slicer build though, since only the extension is supposed to depend on QtConcurrent. Any ideas on how to achieve that?

You might be able to add a binary that matches Slicer’s Qt but that could be difficult.

I wonder if we should enable these. I had thought the were available, since I know we had experimented with QFuture and related classes in CTK and elsewhere.

C++11 threads should be available if you want to use those.

That would be great if the concurrent module could be included in the slicer build directly.