tox-weechat/CMakeLists.txt

57 lines
1.6 KiB
CMake
Raw Normal View History

2014-09-18 18:55:52 +02:00
#
# Copyright (c) 2014 Håvard Pettersson <haavard.pettersson@gmail.com>.
#
# This file is part of Tox-WeeChat.
#
# Tox-WeeChat is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Tox-WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Tox-WeeChat. If not, see <http://www.gnu.org/licenses/>.
#
cmake_minimum_required(VERSION 2.8.7)
2014-09-02 12:37:00 +02:00
project(tox-weechat C)
2014-11-19 07:12:41 +01:00
set(PLUGIN_PATH "lib/weechat/plugins" CACHE PATH
"Path to install the plugin binary to.")
2014-09-02 12:37:00 +02:00
add_library(tox MODULE
2014-09-28 03:29:34 +02:00
src/twc.c
src/twc-bootstrap.c
src/twc-chat.c
src/twc-commands.c
src/twc-completion.c
src/twc-config.c
src/twc-friend-request.c
src/twc-gui.c
2014-10-04 21:42:30 +02:00
src/twc-group-invite.c
2014-09-28 03:29:34 +02:00
src/twc-list.c
src/twc-message-queue.c
src/twc-profile.c
src/twc-sqlite.c
2014-09-28 03:29:34 +02:00
src/twc-tox-callbacks.c
src/twc-utils.c
2014-09-02 12:37:00 +02:00
)
2014-11-20 11:17:16 +01:00
set(CMAKE_C_FLAGS_DEBUG "-DTWC_DEBUG")
2014-11-19 12:03:06 +01:00
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -Wall -Wextra -Wno-unused-parameter")
target_link_libraries(tox toxcore)
2014-11-19 04:49:09 +01:00
target_link_libraries(tox toxav)
target_link_libraries(tox sqlite3)
# remove lib prefix (libtox.so -> tox.so)
2014-09-02 12:37:00 +02:00
set_target_properties(tox PROPERTIES PREFIX "")
2014-10-11 13:11:47 +02:00
install(TARGETS tox DESTINATION "${PLUGIN_PATH}")