Adapted the examples for iOS (WIP)

This commit is contained in:
Laurent Gomila 2013-08-26 09:17:53 +02:00 committed by Jonathan De Wachter
parent cefb4fcee0
commit 4e8e1629d1
6 changed files with 49 additions and 11 deletions

View file

@ -268,6 +268,8 @@ macro(sfml_add_example target)
if(THIS_GUI_APP AND SFML_OS_WINDOWS)
add_executable(${target} WIN32 ${THIS_SOURCES})
target_link_libraries(${target} sfml-main)
elseif(IOS)
add_executable(${target} MACOSX_BUNDLE ${THIS_SOURCES})
else()
add_executable(${target} ${THIS_SOURCES})
endif()
@ -299,7 +301,8 @@ macro(sfml_add_example target)
# add the install rule
install(TARGETS ${target}
RUNTIME DESTINATION ${INSTALL_MISC_DIR}/examples/${target} COMPONENT examples)
RUNTIME DESTINATION ${INSTALL_MISC_DIR}/examples/${target} COMPONENT examples
BUNDLE DESTINATION ${INSTALL_MISC_DIR}/examples/${target} COMPONENT examples)
# install the example's source code
install(FILES ${THIS_SOURCES}