Hi Krzysztof. The easiest way is to list the external file among the target's sources in add_executable/add_library, if possible.
Petr On Sun, Sep 9, 2012 at 9:20 PM, Krzysztof <[email protected]> wrote: > How to make a project dependent on an external file? The file could be a > library built by custom tool or by another cmake project which is not the > part of this one. I mean the project target should be built when the file is > newer than this. > > -- > Regards > Krzysztof J. > > > -- > > 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 -- 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
