tools/CMakeLists.txt
changeset 11271 a292efd31bde
parent 10976 56f07b52213a
child 11362 ed5a6478e710
equal deleted inserted replaced
11270:d49a1a295d81 11271:a292efd31bde
    56     install(SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/CreateMacBundle.cmake
    56     install(SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/CreateMacBundle.cmake
    57             CODE "message(STATUS \"Your app bundle is ready\")")
    57             CODE "message(STATUS \"Your app bundle is ready\")")
    58 
    58 
    59     #create the .dmg for deployment
    59     #create the .dmg for deployment
    60     #first make sure .app exists, then remove any old .dmg with same name, finally run the script
    60     #first make sure .app exists, then remove any old .dmg with same name, finally run the script
    61     add_custom_target(dmg COMMAND "if [ ! -a Hedgewars.app ]; then make install\; fi;"
    61     add_custom_target(dmg COMMAND make install
    62                           COMMAND rm -f ${CMAKE_BINARY_DIR}/Hedgewars-${HEDGEWARS_VERSION}.dmg
    62                           COMMAND rm -f ${CMAKE_BINARY_DIR}/Hedgewars-${HEDGEWARS_VERSION}.dmg
    63                           COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/create-dmg.sh
    63                           COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/create-dmg.sh
    64                                   --volname "Hedgewars ${HEDGEWARS_VERSION}"
    64                                   --volname "Hedgewars ${HEDGEWARS_VERSION}"
    65                                 # --volicon icon.icns
    65                                 # --volicon icon.icns
    66                                   --window-size 600 470
    66                                   --window-size 600 470