-
Add the following to
~/.config/Thunar/uca.xml
<action> <icon></icon> <name>CMake GUI Here</name> <!-- You might need to change this value --> <unique-id>1537910568312016-8</unique-id> <!-- Replace 'cmake-gui' with the path to cmake-gui if necessary --> <command>cmake-gui "-S$(echo %f)" "-B$(echo %f)/build"</command> <description></description> <patterns>*</patterns> <startup-notify/> <directories/> </action>
- Right-click on the "background" of a directory containing a
CMakeLists.txt
file - Choose
CMake GUI Here
- Remove the added
<action>
node that containsCMake GUI Here
from~/.config/Thunar/uca.xml