Ticket #32302: patch-Samples_Browser_CMakeLists.txt.diff

File patch-Samples_Browser_CMakeLists.txt.diff, 1.4 KB (added by marin.saric@…, 13 years ago)
  • Samples/Browser/CMakeLists.txt

    old new  
    218218                ${OGRE_SAMPLE_CONTENTS_PATH}/Frameworks/
    219219                )
    220220        # now cfg files
     221        if(OGRE_SDK_BUILD AND MACPORTS)
     222          set(OGRE_CFGFILES_PATH "${MACPORTS_CONFIGFILE_PATH}")
     223        else()
     224          set(OGRE_CFGFILES_PATH "${OGRE_BINARY_DIR}/inst/bin/release")
     225        endif()
     226
    221227        add_custom_command(TARGET SampleBrowser POST_BUILD
    222228                COMMAND mkdir ARGS -p ${OGRE_SAMPLE_CONTENTS_PATH}/Resources
    223                 COMMAND ln ARGS -s -f ${OGRE_BINARY_DIR}/bin/plugins.cfg
     229                COMMAND cp ARGS ${OGRE_CFGFILES_PATH}/plugins.cfg
    224230                ${OGRE_SAMPLE_CONTENTS_PATH}/Resources/
    225                 COMMAND ln ARGS -s -f ${OGRE_BINARY_DIR}/bin/resources.cfg
     231                COMMAND cp ARGS ${OGRE_CFGFILES_PATH}/resources.cfg
    226232                ${OGRE_SAMPLE_CONTENTS_PATH}/Resources/
    227                 COMMAND ln ARGS -s -f ${OGRE_BINARY_DIR}/bin/samples.cfg
     233                COMMAND cp ARGS ${OGRE_CFGFILES_PATH}/samples.cfg
    228234                ${OGRE_SAMPLE_CONTENTS_PATH}/Resources/
    229                 COMMAND ln ARGS -s -f ${OGRE_BINARY_DIR}/bin/quakemap.cfg
     235                COMMAND cp ARGS ${OGRE_CFGFILES_PATH}/quakemap.cfg
    230236                ${OGRE_SAMPLE_CONTENTS_PATH}/Resources/
    231237                )
    232238
     239        if (NOT OGRE_STATIC)
    233240        # now plugins
    234241        add_custom_command(TARGET SampleBrowser POST_BUILD
    235242                COMMAND mkdir ARGS -p ${OGRE_SAMPLE_CONTENTS_PATH}/Plugins)
     
    313320                ${OGRE_SAMPLE_CONTENTS_PATH}/Plugins/
    314321                )
    315322        ENDIF()
     323        endif(NOT OGRE_STATIC)
    316324  endif()
    317325endif (APPLE)
    318326