Changed install location to /usr/local/lib/weechat/plugins.

This commit is contained in:
Håvard Pettersson 2014-09-08 00:22:49 +02:00
parent b60ac98a3e
commit 8f023e95e8
2 changed files with 8 additions and 8 deletions

View file

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

View file

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