summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/AndroidMK/AndroidMK.cmake
blob: ed21e58698794b2fad9ea514bcc5932e792f1e56 (plain)
1
2
3
4
5
6
7
8
9
10
11
project(build)
set(CMAKE_BUILD_TYPE Debug)
add_library(foo foo.cxx)
add_library(car foo.cxx)
add_library(bar  foo.cxx)
add_library(dog  foo.cxx)
target_link_libraries(foo car bar dog debug -lm)
export(TARGETS bar dog car foo  ANDROID_MK
  ${build_BINARY_DIR}/Android.mk)
install(TARGETS bar dog car foo DESTINATION lib EXPORT myexp)
install(EXPORT_ANDROID_MK myexp DESTINATION share/ndk-modules)