Android Studio - Gradle - Create CMake Library with ExternalProject_Add

I have a project with the following structure:

  • Dependency /CMakeLists.txt
  • Main project /CMakeLists.txt

Dependencies is a subproject with a list of ExternalProject_Add (...) third party libraries.

The main project is a shared library that depends on built-in 3rd party libraries using FindPackage (...).

When building for Windows or Linux, the process is to first create a dependency project and then a main project, usually from a superbuild project that includes the two using ExternalProject_Add.

How do I configure Gradle to create such a library?

+3


source to share





All Articles