From 813293076666700b3d53606ea43bf748b97f1125 Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Mon, 16 May 2011 17:59:34 -0300 Subject: [PATCH] cmake install target --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2cbbbf21..7b77137f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -130,3 +130,8 @@ TARGET_LINK_LIBRARIES(otclient ${GMP_LIBRARY} ${ZLIB_LIBRARY} ${ADDITIONAL_LIBRARIES}) + +# installation +SET(DATA_INSTALL_DIR share/otclient) +INSTALL(TARGETS otclient RUNTIME DESTINATION bin) +INSTALL(DIRECTORY data ARCHIVE DESTINATION ${DATA_INSTALL_DIR})