CMake.qs.in 661 B

123456789101112131415161718192021222324
  1. // Component: CMake
  2. function Component()
  3. {
  4. // Default constructor
  5. }
  6. Component.prototype.createOperations = function()
  7. {
  8. // Create shortcut
  9. if (installer.value("os") === "win") {
  10. component.addOperation("CreateShortcut",
  11. "@TargetDir@/%CMAKE_DOC_DIR%/cmake.org.html",
  12. "@StartMenuDir@/CMake Web Site.lnk");
  13. component.addOperation("CreateShortcut",
  14. "@TargetDir@/cmake-maintenance.exe",
  15. "@StartMenuDir@/CMake Maintenance Tool.lnk");
  16. }
  17. // Call default implementation
  18. component.createOperations();
  19. }