02.02.2011, 16:42, "Michael Hertling" <[email protected]>: > On 02/02/2011 02:27 PM, Ilja Golshtein wrote:
>> the problematic step is ADD_DEPENDENCIES. >> >> I don't have any suitable target. >> >> The referred CMakeLists.txt has main/main.c. Unfortunately mine does not - >> just add_subdirectory. > > But in the subdirectory, there's a target, isn't it? So, just use > ADD_DEPENDENCIES() there; with CMake, targets are global entities. No, there is not - just another bunch of add_subdirectory ;) Obviously I can choose arbitrary executable and link my target to it. I am just looking for better solution ... As simple as Phony target. Thanks. -- Best regards, Ilja Golshtein. _______________________________________________ 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
