How do I compile and run this gtk programe using CMAKE in windows?
- by user198729
#include <gtk/gtk.h>
int main( int argc,
char *argv[] )
{
GtkWidget *window;
gtk_init (&argc, &argv);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_widget_show (window);
gtk_main ();
return 0;
}
The above is from here:
http://library.gnome.org/devel/gtk-tutorial/stable/c39.html
But I want to use cmake to compile/run it(supposing gtk has been properly installed).
Can someone provide a demo?