CMakelists.txt配符添加源文件 file(GLOB source_files "src/main/cpp/*.cpp") add_library( native-lib SHARED ${source_files} )