Compilng magick++ stuff in Code::Blocks
===

I'm doing some experimenting with magick++ and when I compile my snippets I just use g++ and type **g++ test.cpp `Magick++-config --cppflags --cxxflags --ldflags --libs` -o "prog"** but I have recently fallen in love Code:Blocks and I'm wondering how I can tell it to compile like above? I haven't been able to figure it out on my own.