Add dependency from CMakeLists.txt since it is used to get version.