Skip to content

Commit

Permalink
CMAKE: install PkgInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
mgerhardy committed Mar 2, 2016
1 parent b9f9209 commit 3ff64b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmake/PkgInfo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
APPL????
3 changes: 2 additions & 1 deletion cmake/macros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -924,12 +924,13 @@ macro(cp_add_executable)
endif()
endif()

if (DARWIN AND NOT TESTS)
if ((DARWIN OR IOS) AND NOT TESTS)
set(SHARE_DIR "${_EXE_TARGET}.app/Contents")
set(GAMES_DIR "${_EXE_TARGET}.app/Contents/Resources")
set(ICON_DIR "${_EXE_TARGET}.app/Contents/Resources")
set(BIN_DIR "${_EXE_TARGET}.app/Contents/MacOS")
install(FILES ${PROJECT_BINARY_DIR}/Info.plist DESTINATION ${SHARE_DIR} COMPONENT ${_EXE_TARGET})
install(FILES ${ROOT_DIR}/cmake/PKgInfo DESTINATION ${SHARE_DIR} COMPONENT ${_EXE_TARGET})
endif()

if (NOT TESTS)
Expand Down

0 comments on commit 3ff64b5

Please sign in to comment.