Split dependencies into separate CMake scripts