From 8f023e95e880e773f35fe78a82a9becd4446792e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Pettersson?= Date: Mon, 8 Sep 2014 00:22:49 +0200 Subject: [PATCH] Changed install location to /usr/local/lib/weechat/plugins. --- CMakeLists.txt | 11 +++++------ README.md | 5 +++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c22c57c..29dfe7e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,6 @@ cmake_minimum_required(VERSION 2.8.7) project(tox-weechat) -add_definitions(-std=c99 -D_GNU_SOURCE) add_library(tox SHARED src/tox-weechat.c @@ -12,10 +11,10 @@ add_library(tox SHARED src/tox-weechat-chats.c src/tox-weechat-friend-requests.c ) - -# remove lib prefix -set_target_properties(tox PROPERTIES PREFIX "") - +add_definitions(-std=c99 -D_GNU_SOURCE) target_link_libraries(tox toxcore) -install(TARGETS tox DESTINATION ~/.weechat/plugins) +# remove lib prefix (libtox.so -> tox.so) +set_target_properties(tox PROPERTIES PREFIX "") + +install(TARGETS tox DESTINATION lib/weechat/plugins) diff --git a/README.md b/README.md index 3581c05..bb21fef 100644 --- a/README.md +++ b/README.md @@ -12,9 +12,10 @@ Tox-WeeChat requires [libtoxcore][3] to work. After getting it, install Tox-WeeC $ cd tox-weechat $ mkdir build && cd build $ cmake .. - $ make install + $ make + $ sudo make install -This places `tox.so` in `~/.weechat/plugins`. +This places `tox.so` in `/usr/local/lib/weechat/plugins`. Usage -----