You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
910 B
17 lines
910 B
include(apple-export-common.cmake)
|
|
|
|
if(IOS_SIMULATOR_SELECT_ARCHS)
|
|
set(IOS_SIMULATOR_SELECT_FILES "${IOS_SIMULATOR_SELECT_ARCHS}")
|
|
list(TRANSFORM IOS_SIMULATOR_SELECT_FILES PREPEND "lib/ios-simulator-")
|
|
list(TRANSFORM IOS_SIMULATOR_SELECT_FILES APPEND "/cmake/mylib/mylib-targets.cmake")
|
|
generate_apple_architecture_selection_file(mylib-select-arch-install.cmake
|
|
INSTALL_DESTINATION lib/ios-simulator/cmake/mylib
|
|
INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}
|
|
SINGLE_ARCHITECTURES ${IOS_SIMULATOR_SELECT_ARCHS}
|
|
SINGLE_ARCHITECTURE_INCLUDE_FILES ${IOS_SIMULATOR_SELECT_FILES}
|
|
UNIVERSAL_ARCHITECTURES ${IOS_SIMULATOR_SELECT_ARCHS} $(ARCHS_STANDARD)
|
|
UNIVERSAL_INCLUDE_FILE "lib/ios-simulator/cmake/mylib/mylib-targets.cmake"
|
|
)
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/mylib-select-arch-install.cmake DESTINATION lib/ios-simulator/cmake/mylib RENAME mylib-select-arch.cmake)
|
|
endif()
|