Re: [CMake] adding dependencies to a target

2014-06-28 Thread Hendrik Sattler
Hi, since you know the deps for your target_link_libraries call, you can use this deps list as well to configure your add_custom_command to generate your source2 file. HS On 28. Juni 2014 07:23:21 MESZ, abid rahman abidrahm...@gmail.com wrote: Hello, I am adding a new target using

[CMake] adding dependencies to a target

2014-06-27 Thread abid rahman
Hello, I am adding a new target using add_library(target source1 source2). Then add the dependencies of targets by target_link_libraries(target deps) But this source2 is generated by another python script based on dependencies of target. ie, I need to specify the dependencies of target before