CMake: build cross-platform distribution
问题 On my MacOSX I've developed an application that makes use of Qt and VTK libraries. I generate the makefile using CMake. Now I want to compile an end-user self-contained package on Windows, and it is supposed to work on end-user machine without needing to pre-install Qt or VTK libraries. I think is possible to do this by modifying the CMakeLists.txt file but a web search hasn't pointed me the right direction. How to make a distributable package for Windows using CMake? 回答1: What I have done in