RecipeAddShortcutToStartMenu: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
(New page: 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 "i...)
 
No edit summary
Line 2: Line 2:




<pre>if( WIN32 )
<pre>if( WIN32 AND NOT UNIX )
     SET(CPACK_PACKAGE_EXECUTABLES "Target_Name" "Target Name")
     SET(CPACK_PACKAGE_EXECUTABLES "Target_Name" "Target Name")
endif()</pre>
endif()</pre>


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

Revision as of 17:09, 9 October 2009

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"