On 01/13/2014 04:22 PM, Jason Babicka wrote:

So, I was wondering if anyone on this mailing list has tried to do something like this before? If you have, I was wondering if you might be able to provide a very simple CMakeLists.txt example for how you do this? Also, if you have any other suggestions for things to try, I would greatly appreciate those as well.



You can use add_custom_target() which in case of the visual studio generators will create a project that can execute commands of your choice. Alternatively you can use add_custom_command() to attach commands to existing targets (e.g. visual studio projects) or to produce an output that can be depended on by another target.

Nils
-- 

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://www.cmake.org/mailman/listinfo/cmake

Reply via email to