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 -----