tox-weechat/CMakeLists.txt

23 lines
618 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 2.8.7)
2014-09-02 12:37:00 +02:00
project(tox-weechat)
add_library(tox MODULE
2014-09-02 12:37:00 +02:00
src/tox-weechat.c
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
)
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)
2014-09-02 12:37:00 +02:00
# remove lib prefix (libtox.so -> tox.so)
2014-09-02 12:37:00 +02:00
set_target_properties(tox PROPERTIES PREFIX "")
install(TARGETS tox DESTINATION lib/weechat/plugins)