Re: [CMake] Building Multiple projects from a single CMakeList

2009-07-22 Thread Michael Jackson
You can have as many add_executable as you want. Typically what you see is the project either just includes expat and builds it or offers the user the option of using a pre-built from the system (or some other location). OPTION(USE_SYSTEM_EXPAT "Use an expat library supplied on the system"

[CMake] Building Multiple projects from a single CMakeList

2009-07-22 Thread ML
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 pro