On 04/27/2017 10:43 AM, Louis-Paul CORDIER wrote:
I added my current code for handling Qt library in my project at the end of this email. (I put a huge part of it if someone want to reuse it). You will notice that this code is handling the case where you are debugging using Visual Studio, to avoid the missing .DLL issue.
FWIW in case of Qt5 you do not have to manually construct or guess DLL locations.
You can retrieve the DLL locations from the imported targets (e.g. "Qt5::Widgets") that Qt5 provides by querying the LOCATION_<CONFIG> target properties (e.g. LOCATION_DEBUG or LOCATION_RELEASE).
Nils -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake