Hi All,

So my learning is going ok so far.

My question right now is how might I check for the existence of a previously build library. If it exists do nothing, if it does not exist build it.

My Example:
1. if libexpat.a exists in bin/ do nothing
2. if libexpat.a does not exist, my main project needs it, so build it.

Can I have a target called 'expat' and variable for the expat source files, etc and another add_executable?

Does anyone have a template?

Best,

-Jason

_______________________________________________
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

Reply via email to