CMake.qs 754 B

123456789101112131415161718192021222324252627
  1. // Component: CMake
  2. function Component()
  3. {
  4. // Do not show component selection page
  5. installer.setDefaultPageVisible(QInstaller.ComponentSelection, false);
  6. }
  7. Component.prototype.createOperations = function()
  8. {
  9. // Create shortcut
  10. if (installer.value("os") === "win") {
  11. component.addOperation("CreateShortcut",
  12. "@TargetDir@/doc/cmake-3.11/cmake.org.html",
  13. "@StartMenuDir@/CMake Web Site.lnk");
  14. component.addOperation("CreateShortcut",
  15. "@TargetDir@/cmake-maintenance.exe",
  16. "@StartMenuDir@/CMake Maintenance Tool.lnk");
  17. }
  18. // Call default implementation
  19. component.createOperations();
  20. }