How to get cmake to monitor a specific file

I am using android studio to compile a large project with many modules. When I modify CMakeList.txt, xxx.cmake files, it triggers android studio to go and regenerate the cmake project. I want to add some file types to monitor but not using .cmake suffix like .py. after modifying such files it also triggers cmake to regenerate the project.
How should I do this?

You can use CMAKE_CONFIGURE_DEPENDS to do this:

set_property(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" APPEND
  PROPERTY CMAKE_CONFIGURE_DEPENDS path/to/something.py)