<<$srcs := getSources .M>> <<$includeDirs := getIncludeDirs .Ctx .M>> <<$cflags := getCflagsProperty .Ctx .M>> <<$deps := mapLibraries .Ctx .M (concat5 (getWholeStaticLibsProperty .Ctx .M) (getStaticLibsProperty .Ctx .M) (getSharedLibsProperty .Ctx .M) (getHeaderLibsProperty .Ctx .M) (getExtraLibs .M) ) .Pprop.LibraryMapping>> <<$moduleType := getModuleType .M>> <<$moduleTypeCmake := "executable">> <> <<$moduleTypeCmake = "library">> <> # <<.M.Name>> <> <> add_<<$moduleTypeCmake>>(<<.M.Name>> ${<<.M.Name>>_SRCS}) <<- else>> add_<<$moduleTypeCmake>>(<<.M.Name>> INTERFACE) <<- end>> <<- if eq $moduleType "library">> add_library(android::<<.M.Name>> ALIAS <<.M.Name>>) <<- else if eq $moduleType "test">> add_test(NAME <<.M.Name>> COMMAND <<.M.Name>>) <<- end>> <> <<- if $includeDirs>> <> target_include_directories(<<.M.Name>> <>PUBLIC<>INTERFACE<> ${<<.M.Name>>_INCLUDES}) <> <<- if and $srcs $cflags>> <> target_compile_options(<<.M.Name>> PRIVATE ${<<.M.Name>>_CFLAGS}) <> <<- if $deps>> <> target_link_libraries(<<.M.Name>> <>INTERFACE <> ${<<.M.Name>>_DEPENDENCIES}) <>