Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
Community
Community
  • Project overview
    • Project overview
    • Details
    • Activity
  • Analytics
    • Analytics
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
Collapse sidebar
  • CMake
  • CommunityCommunity
  • Wiki
    • Doc
    • Cmake
    • Recipe
  • AddShortcutToStartMenu

Last edited by Kitware Robot Apr 27, 2018
Page history

AddShortcutToStartMenu

If you application builds for multiple platforms and you'd like your application to show up in the Start Menu in Windows XP, add this logic to the end of your CMakeLists.txt file before "include(CPack)":

if( WIN32 AND NOT UNIX )
    SET(CPACK_PACKAGE_EXECUTABLES "Target_Name" "Target Name")
endif()

Now the application shows up with a shortcut in the Start Menu on Windows only with the name "Target Name"


This page was initially populated by conversion from its original location in another wiki.

Clone repository
  • CMake Versions on Linux Distros
  • Contrib
  • Editing Guidelines
  • FAQ
  • Home
  • contrib
    • macros
      • AddCxxTest
      • CompareVersionStrings
      • CopyIfDifferent
      • CreateFinalFile
      • FilterOut
      • ForceAddFlags
      • GatherProjectFiles
      • GenerateProject
      • LibtoolFile
      • ListOperations
View All Pages