如何在安卓中执行多个CMakeLists.txt文件
How to execute more than CMakeLists.txt files in android
我的项目中包含两个 c++ 库,每个库都有 CMakeLists.txt 文件。我应该在build.gradle
文件中添加什么来执行它们?我尝试了以下方法,但它不起作用:
cmake {
path "CMakeLists.txt"
path "src/main/cpp/fluidsynth/android/CMakeLists.txt"
}
但是在包含第一个CMakeLists.txt
文件的库后,我遇到了运行时错误。
将add_subdirectory("src/main/cpp/fluidsynth/android/CMakeLists.txt")
添加到第一个 CMakeList 中.txt并从build.gradle
文件中删除第二个路径。
相关文章:
- 在CMakeLists.txt的安装功能中使用.cmake文件有什么用
- CMakeLists.txt中的命名空间表示法
- 将生成文件转换为 CMakeLists.txt等效项
- CMake 错误"源似乎不包含 CMakeLists.txt",路径/库连接问题
- 直接传递编译选项(绕过 CMakeLists.txt)
- 如何在 CMakeLists.txt Qt Creator 中包含头文件?
- 了解编写 CMakeLists.txt
- 如何制作 cmakelists.txt编译使用在其他地方声明和实现的函数和类的 CPP
- 将目录添加到没有 CMakeLists.txt 的 CMake 项目
- 如何在 CMakeLists.txt for Visual Studio 2019 中启用 clang-tidy?
- CMakeLists.txt structure
- CMakeLists.txt:(add_executable):没有给目标提供来源:教程
- 如何将opencv包添加到CMakelists.txt
- 如何在不更改CMakeLists.txt的情况下(可能通过CLI)将CFLAGS和CXXFLAGS传递给cmake
- 如何在CMakeLists.txt中正确设置CMake标志
- 如何为 UnitTest++ 项目编写 CMakeLists.txt 文件
- 设置诊断:插入符号来自 CMakeLists.txt
- cmake find_package CMakeLists.txt 子文件夹中的相对路径
- 在cmakelists.txt中链接GSL
- CMakelists.txt用于C 项目中的第三方C文件