darling/cmake/darling_bundle.cmake
2017-03-07 15:10:16 +01:00

13 lines
326 B
CMake

FUNCTION(add_darling_bundle name loader)
add_darling_library(${name} ${ARGN})
set_property(TARGET ${name} APPEND_STRING PROPERTY
LINK_FLAGS " -Wl,-bundle ")
if (loader)
set_property(TARGET ${name} APPEND_STRING PROPERTY
LINK_FLAGS " -Wl,-bundle_loader,${loader} ")
endif (loader)
ENDFUNCTION(add_darling_bundle)