More work on make install target of CMake. Now works quite well

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10030 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2011-10-22 01:01:22 +00:00
parent 365b9d7225
commit d5698636ae

View File

@ -662,7 +662,7 @@ if (APPLE)
/Library/Frameworks/Ogg.framework
/Library/Frameworks/OpenAL.framework
/Library/Frameworks/Vorbis.framework
# TODO: allow linking against frameworks from a SDK. I (Auria) just am not familiar enough with CMake to do this
# TODO: allow linking against frameworks from a SDK.
/System/Library/Frameworks/AGL.framework
/System/Library/Frameworks/IOKit.framework
/System/Library/Frameworks/QuickTime.framework
@ -759,3 +759,10 @@ install(TARGETS supertuxkart RUNTIME DESTINATION games)
install(FILES data/supertuxkart.desktop DESTINATION share/applications)
install(FILES data/supertuxkart_32.xpm data/supertuxkart_64.xpm DESTINATION share/pixmaps)
add_custom_target(GenerateDesktopFile
COMMAND sed 's\#PREFIX\#${CMAKE_INSTALL_PREFIX}\#' ${CMAKE_CURRENT_SOURCE_DIR}/data/supertuxkart_desktop.template | sed 's\#VERSION\#${PROJECT_VERSION}\#' > ${CMAKE_CURRENT_SOURCE_DIR}/data/supertuxkart.desktop
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
ADD_DEPENDENCIES(supertuxkart GenerateDesktopFile)