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 the add_library() line. But unfortunately target is not created before add_library() line. So how can I specify the dependencies of target before add_library() or is there any other workaround? (Sorry, if question is not clear, I am new to cmake. Let me know if I need to explain more) Abid K.
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake