From e5c2760753be0fe9b370107786cb829324165880 Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Mon, 30 Nov 2009 08:01:45 -0800 Subject: [PATCH] run-medit.bat --- CMakeLists.txt | 9 +++++++++ run-medit.in | 3 +++ 2 files changed, 12 insertions(+) create mode 100644 run-medit.in diff --git a/CMakeLists.txt b/CMakeLists.txt index 6d425cab..7a2c0947 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/run-medit.in b/run-medit.in new file mode 100644 index 00000000..fbf3eeb5 --- /dev/null +++ b/run-medit.in @@ -0,0 +1,3 @@ +@pushd ${_MOO_BINARY_DIR}\moo +@${_MOO_BINARY_DIR}\medit\medit.exe -n --log-window +@popd