run-medit.bat

This commit is contained in:
Yevgen Muntyan 2009-11-30 08:01:45 -08:00
parent d1311e312b
commit e5c2760753
2 changed files with 12 additions and 0 deletions

View File

@ -41,3 +41,12 @@ MOO_ADD_MSG_CATALOG(moo-gsv po-gsv)
MOO_WRITE_CONFIG_H(config.h.in config.h @ONLY)
CONFIGURE_FILE(config-dirs.h.in config-dirs.h @ONLY)
IF(WIN32)
GET_FILENAME_COMPONENT(_MOO_SOURCE_DIR ${MOO_SOURCE_DIR} ABSOLUTE)
# TO_NATIVE_PATH damn it! Cmake is such a wonderful piece of language...
STRING(REPLACE "/" "\\" _MOO_SOURCE_DIR "${_MOO_SOURCE_DIR}")
GET_FILENAME_COMPONENT(_MOO_BINARY_DIR ${MOO_BINARY_DIR} ABSOLUTE)
STRING(REPLACE "/" "\\" _MOO_BINARY_DIR "${_MOO_BINARY_DIR}")
CONFIGURE_FILE(run-medit.in run-medit.bat)
ENDIF(WIN32)

3
run-medit.in Normal file
View File

@ -0,0 +1,3 @@
@pushd ${_MOO_BINARY_DIR}\moo
@${_MOO_BINARY_DIR}\medit\medit.exe -n --log-window
@popd