Skip to content

Commit

Permalink
Link frameworks on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
dpjudas committed Jan 6, 2025
1 parent a294c98 commit 1825562
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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" )
Expand Down

0 comments on commit 1825562

Please sign in to comment.