Simple template to write Gtkmm applications using CMake and Glade
- Gtkmm-3.0
- CMake-3.2 or higher
- Glade (optional)
- Clone repository with preferred project name:
git clone https://github.com/anschu/gtkmm-application-template.git PROJECT_NAME
- Run initialization script located in the project root...
cd PROJECT_NAME/
bash init.sh
...and choose your application-ID e.g. "org.gtkmm.MyApplication".
-
Write your code.
-
Build the project:
mkdir build
cd build/
cmake ..
make
- Installation:
sudo make install
- If you want to uninstall your application run the shellscript in the build-directory:
sudo ./uninstall.sh
Most parts used in the source code are copied from the GNOME Developer Guide Programming with gtkmm3, especially chapter Building applications.