September 25, 2009

CMake Recipe #3: (Cross-Platform Builds) Add to start menu

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 )

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

Click Here!