Fixed missing depends in CMakeLists.txt.