Move more module/plugin-specific CMake macros from root CMakeLists.txt to ModuleSetup.cmake.