How cmake search custom system and language from specific directories?

Our project need to add some custom system and custom language support. But we don’t want to make change to cmake program. So if i put the languange extension in PROJECT_ROOT/cmake/modules/ and PROJECT_ROOT/cmake/modules/platform, can cmake find these extensions from these dir? Is there extra works need i do?

You’ll need to modify CMAKE_MODULE_PATH before the project() or enable_language() call for your custom language and platform.