From cbf8895c9ea259977dff8088f3316087497a7c59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Pettersson?= Date: Tue, 2 Sep 2014 21:14:05 +0200 Subject: [PATCH] Make CMake install plugin locally. --- CMakeLists.txt | 8 +------- README.md | 3 ++- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3ae4910..96b4229 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,15 +13,9 @@ add_library(tox SHARED src/tox-weechat-friend-requests.c ) -if (PREFIX) - set(CMAKE_INSTALL_PREFIX ${PREFIX}) -else() - set(CMAKE_INSTALL_PREFIX /usr/local/lib/weechat) -endif() - # remove lib prefix set_target_properties(tox PROPERTIES PREFIX "") target_link_libraries(tox toxcore) -install(FILES build/tox.so DESTINATION plugins) +install(FILES build/tox.so DESTINATION ~/.weechat/plugins) diff --git a/README.md b/README.md index ae6fe26..0928d5a 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Tox-WeeChat requires [libtoxcore][3] to work. After getting it, install Tox-WeeC $ cmake .. $ make install -This places `tox.so` in `/usr/local/lib/weechat/plugins`. If you don't have root access or otherwise would like to install it locally, replace the cmake command above with this one: `cmake -DPREFIX=$HOME/.weechat ..`. +This places `tox.so` in `~/.weechat/plugins`. Usage ----- @@ -40,3 +40,4 @@ Copyright (c) 2014 HÃ¥vard Pettersson . [1]: http://weechat.org [2]: http://tox.im [3]: https://github.com/irungentoo/toxcore +