title: CMake multiple projects using same library
body: <p>What's the practice in CMake to build (not at once) multiple projects which use same library? As far as I know in CMake people tend to use subdirectory approach. But library can't be a real subdirectory of multiple projects without library source duplication. There's also a top-level CMakeLists.txt approach but I don't think this is a good solution as you have to create that for every project and it must be one level up of project directory which doesn't play well with source control (like GIT) where you would like to have single repository/directory for single project.</p>