[CMake] Install commands/shortcuts for the windows explorer

David Cole david.cole at kitware.com
Mon Mar 5 10:11:00 EST 2012


This is for menu items in the Windows Start menu. Is that what you mean?


See the file CMakeCPackOptions.cmake.in in CMake's own source tree
that has code in it like this:

if(CPACK_GENERATOR MATCHES "NSIS")
  ...
  SET(CPACK_NSIS_MENU_LINKS
    # ... pairs of (filenames or urls, text for menu items)

    "doc/cmake- at CMake_VERSION_MAJOR@. at CMake_VERSION_MINOR@/cmake-commands.html"
"CMake Commands Help"
    "doc/cmake- at CMake_VERSION_MAJOR@. at CMake_VERSION_MINOR@/cpack.html"
"CPack Help"
    "http://www.cmake.org" "CMake Web Site"
    )
  ...
endif(CPACK_GENERATOR MATCHES "NSIS")

This file is what's known as a CPACK_PROJECT_CONFIG_FILE. See more
about that on this wiki page:
http://www.vtk.org/Wiki/CMake:CPackPackageGenerators#Overall_usage_.28common_to_all_generators.29


HTH,
David


On Sat, Mar 3, 2012 at 4:50 PM,  <norulez at me.com> wrote:
> Hi,
>
> Is there an easy way to add/create a windows context menu entry with CMake/nsis?
>
> If someone has this already done before, maybe this can be explained.
>
> Thanks in advance
>
> Best Regards
> NoRulez
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list