mirror of
https://github.com/darlinghq/darling.git
synced 2024-11-27 14:20:24 +00:00
f39537577a
There is now an argument for making the library fat
16 lines
530 B
CMake
16 lines
530 B
CMake
include(darling_lib)
|
|
|
|
function(add_darling_static_library name)
|
|
cmake_parse_arguments(STATIC_LIB "FAT" "" "SOURCES" ${ARGN})
|
|
|
|
set(CMAKE_AR "${CMAKE_BINARY_DIR}/src/external/cctools-port/cctools/ar/x86_64-apple-darwin11-ar")
|
|
set(CMAKE_RANLIB "${CMAKE_BINARY_DIR}/src/external/cctools-port/cctools/misc/ranlib")
|
|
add_library(${name} STATIC ${STATIC_LIB_SOURCES})
|
|
|
|
if (STATIC_LIB_FAT)
|
|
make_fat(${name})
|
|
endif (STATIC_LIB_FAT)
|
|
|
|
add_dependencies(${name} ranlib x86_64-apple-darwin11-ar)
|
|
endfunction(add_darling_static_library)
|