Skip to content
Browse files

mac build (cmake): plugins should be built to the bundle

  • Loading branch information...
1 parent 0cba139 commit 2b6eecf1fa8bca5e38860dda00e5f816cb5185b6 @bradallred bradallred committed
Showing with 9 additions and 3 deletions.
  1. +9 −3 CMakeLists.txt
View
12 CMakeLists.txt
@@ -357,9 +357,15 @@ MACRO(ADD_GEMRB_PLUGIN plugin_name)
endif (CMAKE_SYSTEM_NAME STREQUAL "NetBSD")
INSTALL(TARGETS ${plugin_name} DESTINATION ${PLUGIN_DIR})
endif (STATIC_LINK)
- SET_TARGET_PROPERTIES(${plugin_name} PROPERTIES PREFIX ""
- INSTALL_RPATH ${LIB_DIR}
- LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/gemrb/plugins)
+
+ IF (APPLE)
+ SET_TARGET_PROPERTIES(${plugin_name} PROPERTIES PREFIX ""
+ LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/gemrb/${PROJECT_NAME}.app/Contents/PlugIns)
+ ELSE (APPLE)
+ SET_TARGET_PROPERTIES(${plugin_name} PROPERTIES PREFIX ""
+ INSTALL_RPATH ${LIB_DIR}
+ LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/gemrb/plugins)
+ ENDIF (APPLE)
ENDMACRO(ADD_GEMRB_PLUGIN)
# also put the chosen paths in the man page (Ubuntu)

0 comments on commit 2b6eecf

Please sign in to comment.
Something went wrong with that request. Please try again.