[CMake] unix header files

dizzy dizzy at roedu.net
Wed Jun 18 10:14:27 EDT 2008


On Wednesday 18 June 2008 15:00:18 Ingrid Kemgoum wrote:
> hi,
> i've seen in my project and on the net that unix makefiles skips header
> files.

What do you mean?

> how is it possible to put them on dependancies?
> In my header i have some variable initialized so i want the source files to
> be recompile if the header is modified.
>
> thanks for help.

cmake automatically builds dependency lists based on what you list in the 
add_executable() command plus what those files there #include.

Do you have an example where this does not work?

-- 
Mihai RUSU					Email: dizzy at roedu.net
			"Linux is obsolete" -- AST


More information about the CMake mailing list