CMakeLists.txt updated to handle imported dependencies.