Skip to content

Launches CMake GUI from your file manager's context menu. Auto-fills Source and Build directories

License

Notifications You must be signed in to change notification settings

maddouri/cmake-context-menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CMake Context Menu Item

A collection of scripts that add context menu items for launching CMake from the OS file manager.

Features

  • Launches CMake GUI from the current folder's context menu
  • Automatically sets the source and build directories

Note for CMake >= 3.13

Up until CMake 3.12, we had to use the undocumented -H command line option to specify the source directory (i.e. the directory containing CMakeLists.txt).

Starting from CMake 3.13, a new -S option has been added to specify the source directory.

Therefore, if you have CMake >= 3.13, you must replace -H with -S in the scripts that are provided by this repo for your file manager.

Supported File Managers

(click on the file manager's name to go to the instructions)

Contributing

Bug fixes and pull requests (e.g. adding support to more file managers) are welcome :)

For the "CMake GUI Here" menu item, the main trick is to launch cmake-gui with the following arguments

# CMake <= 3.12
cmake-gui "-H<path to current folder>" "-B<path to current folder>/build"

# CMake >= 3.13
cmake-gui "-S<path to current folder>" "-B<path to current folder>/build"

Note that

  • "-H..."/"-S..." and "-B..." are quoted
  • There are no spaces after -H/-S and -B

About

Launches CMake GUI from your file manager's context menu. Auto-fills Source and Build directories

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages