Author Topic: Using CodeBlocks with CMake  (Read 6079 times)

Offline Kazade

  • Multiple posting newcomer
  • *
  • Posts: 73
Using CodeBlocks with CMake
« on: April 06, 2008, 06:48:22 pm »
I've recently started using CMake for all my projects because it allows me to easily distribute my programs to my friends. What I want to do is set CodeBlocks so that clicking compile would run the following:

cmake .
make

and clicking rebuild would run:

cmake .
make clean
make

However, I can't even get CodeBlocks to even do anything with the Makefile generated by cmake, let alone make it do the cmake step before hand. I've enabled a custom makefile and it definitely exists in the same directory as the codeblocks project. Does anyone know how I can achieve what I want?

Offline DrewBoo

  • Multiple posting newcomer
  • *
  • Posts: 110
Re: Using CodeBlocks with CMake
« Reply #1 on: April 06, 2008, 07:58:26 pm »
It sounds like you want to go to Project->Build Settings and head to the "make" commands tab at the end.