From 6fdf23e22fa0868e7e354e8ac2a3ff6f1f53d540 Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Tue, 14 Aug 2012 16:41:48 -0300 Subject: [PATCH] Add make run target --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 93e8f7e8..fa7d298d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,3 +46,6 @@ set(DATA_INSTALL_DIR share/otclient) install(TARGETS otclient RUNTIME DESTINATION bin) install(FILES README.md TODO BUGS LICENSE AUTHORS init.lua otclientrc.lua DESTINATION ${DATA_INSTALL_DIR}) install(DIRECTORY modules DESTINATION ${DATA_INSTALL_DIR} PATTERN ".git" EXCLUDE) + +# add "make run" +add_custom_target(run COMMAND otclient DEPENDS otclient WORKING_DIRECTORY ${CMAKE_PROJECT_DIR})