Maik Beckmann wrote:
> If I put the >>add_custom_command<< into
> Project_dir/mydir/CMakeLists.txt everything works fine. Is this a
> limitation of cmake?

Yes.  Custom commands are considered on a per-directory basis when
looking for source files.

Also note that your example command modifies the source tree.  It should
write its output to ${PROJECT_BINARY_DIR} or ${CMAKE_CURRENT_BINARY_DIR}
and reference the source from there.

-Brad
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to