tox-weechat/CMakeLists.txt
2014-09-02 23:30:50 +02:00

22 lines
512 B
CMake

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
src/tox-weechat-tox.c
src/tox-weechat-utils.c
src/tox-weechat-commands.c
src/tox-weechat-gui.c
src/tox-weechat-chats.c
src/tox-weechat-friend-requests.c
)
# remove lib prefix
set_target_properties(tox PROPERTIES PREFIX "")
target_link_libraries(tox toxcore)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/tox.so DESTINATION ~/.weechat/plugins)