mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-07 14:20:06 -06:00
16 lines
582 B
CMake
16 lines
582 B
CMake
project(build)
|
|
set(CMAKE_BUILD_TYPE Debug)
|
|
add_library(foo foo.cxx)
|
|
add_library(car foo.cxx)
|
|
add_library(bar bar.c)
|
|
add_library(dog foo.cxx)
|
|
target_link_libraries(foo PRIVATE car bar dog debug -lm)
|
|
add_library(foo2 foo.cxx)
|
|
target_link_options(foo2 INTERFACE -lm)
|
|
export(TARGETS bar dog car foo foo2 ANDROID_MK
|
|
${build_BINARY_DIR}/Android.mk)
|
|
install(TARGETS bar dog car foo foo2 DESTINATION lib EXPORT myexp)
|
|
install(EXPORT_ANDROID_MK myexp DESTINATION share/ndk-modules COMPONENT android)
|
|
get_cmake_property(components COMPONENTS)
|
|
message(STATUS "COMPONENTS='${components}'")
|