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 218 218 ${OGRE_SAMPLE_CONTENTS_PATH}/Frameworks/ 219 219 ) 220 220 # 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 221 227 add_custom_command(TARGET SampleBrowser POST_BUILD 222 228 COMMAND mkdir ARGS -p ${OGRE_SAMPLE_CONTENTS_PATH}/Resources 223 COMMAND ln ARGS -s -f ${OGRE_BINARY_DIR}/bin/plugins.cfg229 COMMAND cp ARGS ${OGRE_CFGFILES_PATH}/plugins.cfg 224 230 ${OGRE_SAMPLE_CONTENTS_PATH}/Resources/ 225 COMMAND ln ARGS -s -f ${OGRE_BINARY_DIR}/bin/resources.cfg231 COMMAND cp ARGS ${OGRE_CFGFILES_PATH}/resources.cfg 226 232 ${OGRE_SAMPLE_CONTENTS_PATH}/Resources/ 227 COMMAND ln ARGS -s -f ${OGRE_BINARY_DIR}/bin/samples.cfg233 COMMAND cp ARGS ${OGRE_CFGFILES_PATH}/samples.cfg 228 234 ${OGRE_SAMPLE_CONTENTS_PATH}/Resources/ 229 COMMAND ln ARGS -s -f ${OGRE_BINARY_DIR}/bin/quakemap.cfg235 COMMAND cp ARGS ${OGRE_CFGFILES_PATH}/quakemap.cfg 230 236 ${OGRE_SAMPLE_CONTENTS_PATH}/Resources/ 231 237 ) 232 238 239 if (NOT OGRE_STATIC) 233 240 # now plugins 234 241 add_custom_command(TARGET SampleBrowser POST_BUILD 235 242 COMMAND mkdir ARGS -p ${OGRE_SAMPLE_CONTENTS_PATH}/Plugins) … … 313 320 ${OGRE_SAMPLE_CONTENTS_PATH}/Plugins/ 314 321 ) 315 322 ENDIF() 323 endif(NOT OGRE_STATIC) 316 324 endif() 317 325 endif (APPLE) 318 326