How do I compile and run this gtk programe using CMAKE in windows?

Posted by user198729 on Stack Overflow See other posts from Stack Overflow or by user198729
Published on 2010-04-25T03:55:35Z Indexed on 2010/04/25 4:03 UTC
Read the original article Hit count: 211

Filed under:
#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?

© Stack Overflow or respective owner

Related posts about cmake