Hi,

I've been trying to add manual dependencies using
set_source_files_properties. I know that I can add a dependency like
this
SET_SOURCE_FILES_PROPERTIES(source_file.foo PROPERTIES OBJECT_DEPENDS
/path/to/some_depend_file.bar)
in a CMakeLists.txt.

In my case, I want to add support for a new language. I have working
code that finds the compiler for the language. Further the compiler can
generate a list of depended files.
But how do I add these dependencies? I don't want to add it in each
project's CMakeLists.txt since it's redundant. Can I add this somewhere
else such that it automatically works for each source file for that
language?

I searched the list's archive for "gcc -M" and read some posts about
using gcc's dependency scanner instead of CMake's built-in one. But
I couldn't figure out how to do this. Any ideas?

Jens
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to