You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
618 B
CMake

cmake_minimum_required(VERSION 2.8.7)
10 years ago
project(tox-weechat)
add_library(tox MODULE
10 years ago
src/tox-weechat.c
src/tox-weechat-tox.c
src/tox-weechat-utils.c
10 years ago
src/tox-weechat-commands.c
src/tox-weechat-gui.c
src/tox-weechat-chats.c
src/tox-weechat-friend-requests.c
10 years ago
)
add_definitions(-D_GNU_SOURCE)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wall -Wextra -Werror-implicit-function-declaration -Wno-unused-parameter")
target_link_libraries(tox toxcore)
# remove lib prefix (libtox.so -> tox.so)
10 years ago
set_target_properties(tox PROPERTIES PREFIX "")
install(TARGETS tox DESTINATION lib/weechat/plugins)