2014-09-02 22:40:31 +02:00
|
|
|
cmake_minimum_required(VERSION 2.8.7)
|
2014-09-02 12:37:00 +02:00
|
|
|
|
|
|
|
project(tox-weechat)
|
2014-09-02 22:45:00 +02:00
|
|
|
add_definitions(-std=c99)
|
2014-09-02 12:37:00 +02:00
|
|
|
|
|
|
|
add_library(tox SHARED
|
|
|
|
src/tox-weechat.c
|
2014-09-02 13:59:15 +02:00
|
|
|
src/tox-weechat-tox.c
|
|
|
|
src/tox-weechat-utils.c
|
2014-09-02 18:47:08 +02:00
|
|
|
src/tox-weechat-commands.c
|
|
|
|
src/tox-weechat-gui.c
|
|
|
|
src/tox-weechat-chats.c
|
|
|
|
src/tox-weechat-friend-requests.c
|
2014-09-02 12:37:00 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
# remove lib prefix
|
|
|
|
set_target_properties(tox PROPERTIES PREFIX "")
|
|
|
|
|
|
|
|
target_link_libraries(tox toxcore)
|
|
|
|
|
2014-09-02 21:46:38 +02:00
|
|
|
install(FILES tox.so DESTINATION ~/.weechat/plugins)
|