Difference between revisions of "RecipeAddShortcutToStartMenu"

From KitwarePublic
Jump to navigationJump to search
(Replace content with link to new CMake community wiki)
 
Line 1: Line 1:
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)":
+
{{CMake/Template/Moved}}
  
<pre>
+
This page has moved [https://gitlab.kitware.com/cmake/community/wikis/doc/cmake/recipe/AddShortcutToStartMenu here].
if( WIN32 AND NOT UNIX )
 
    SET(CPACK_PACKAGE_EXECUTABLES "Target_Name" "Target Name")
 
endif()
 
</pre>
 
 
 
Now the application shows up with a shortcut in the Start Menu on Windows only with the name "Target Name"
 
 
 
{{CMake/Template/Footer}}
 

Latest revision as of 11:41, 30 April 2018


The CMake community Wiki has moved to the Kitware GitLab Instance.

This page has moved here.