Eclipse-CDT: What is the best way to add a custom build step?

I have a file in my project that I need to compile with an external tool, and the output of this is a couple of .c and .h files.

What is the best way to integrate this into my Eclipse-CDT build?

  • Ideally, I can reference an external tool using a relative path
  • Ideally, Eclipse will know if I modified this file so that it starts the external tool again.

I tried adding something to the Builders section of the Project Properties section with mixed results.

THX

  • Alex
+5
source share
3 answers

, "Builder" "".

, "", ""..., " , ", .

+3

cmake eclipse cdt
eclipse cdt

CMakeLists.txt, :
cmake -G"Eclipse CDT4 - Unix Makefiles" -D CMAKE_BUILD_TYPE=Debug .
eclipse cmake CMakeLists.txt

tutorial cmake cdt

, cmake

+2

, Eclipse CDT, Make.

, ; Eclipse CDT make ( ), Eclipse CDT make .

make, .

+1

All Articles