Link frameworks on macOS
This commit is contained in:
parent
c7e1eb5f78
commit
f91b9e62d4
1 changed files with 4 additions and 1 deletions
|
|
@ -1445,13 +1445,16 @@ if( APPLE )
|
|||
set( LINK_FRAMEWORKS "${LINK_FRAMEWORKS} -framework QuartzCore" )
|
||||
endif()
|
||||
|
||||
# Do we also need to do this with ztool? It is not an app bundle
|
||||
set_target_properties(zdoom PROPERTIES
|
||||
LINK_FLAGS "${LINK_FRAMEWORKS}"
|
||||
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/posix/osx/zdoom-info.plist"
|
||||
XCODE_ATTRIBUTE_PRODUCT_BUNDLE_IDENTIFIER "org.vkdoom.vkdoom"
|
||||
XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "" )
|
||||
|
||||
set_target_properties(ztool PROPERTIES
|
||||
LINK_FLAGS "${LINK_FRAMEWORKS}"
|
||||
)
|
||||
|
||||
# Dymanic libraries like libvulkan.dylib or libMoltenVK.dylib will be loaded by dlopen()
|
||||
# if placed in the directory with the main executable
|
||||
set( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -rpath @executable_path" )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue