diff options
author | Marc-André Moreau <marcandre.moreau@gmail.com> | 2011-11-12 20:50:51 +0400 |
---|---|---|
committer | Marc-André Moreau <marcandre.moreau@gmail.com> | 2011-11-12 20:50:51 +0400 |
commit | 2117309a62b3915cc36743e4df062f2836b48df1 (patch) | |
tree | 5cbbeda0ab9d45e34e7404fbc82079b0a82b118d /remmina-plugins | |
parent | fd2d8fd097389dd3f1650aac82b3992fded45d76 (diff) |
cmake: added cmake scripts for most plugins
Diffstat (limited to 'remmina-plugins')
-rw-r--r-- | remmina-plugins/CMakeLists.txt | 6 | ||||
-rw-r--r-- | remmina-plugins/libvncserver/CMakeLists.txt | 48 | ||||
-rw-r--r-- | remmina-plugins/nx/CMakeLists.txt | 38 | ||||
-rw-r--r-- | remmina-plugins/nx/remminanxsession.c | 2 | ||||
-rw-r--r-- | remmina-plugins/nx/remminapluginnx.c | 2 | ||||
-rw-r--r-- | remmina-plugins/rdp/CMakeLists.txt | 2 | ||||
-rw-r--r-- | remmina-plugins/telepathy/CMakeLists.txt | 33 | ||||
-rw-r--r-- | remmina-plugins/vnc/CMakeLists.txt | 33 | ||||
-rw-r--r-- | remmina-plugins/xdmcp/CMakeLists.txt | 33 |
9 files changed, 196 insertions, 1 deletions
diff --git a/remmina-plugins/CMakeLists.txt b/remmina-plugins/CMakeLists.txt index 26b3eb3ac..2a5e4d513 100644 --- a/remmina-plugins/CMakeLists.txt +++ b/remmina-plugins/CMakeLists.txt @@ -19,5 +19,11 @@ include_directories(${CMAKE_SOURCE_DIR}/remmina-plugins) +add_subdirectory(nx) add_subdirectory(rdp) +add_subdirectory(xdmcp) +add_subdirectory(telepathy) + +#add_subdirectory(libvncserver) +#add_subdirectory(vnc) diff --git a/remmina-plugins/libvncserver/CMakeLists.txt b/remmina-plugins/libvncserver/CMakeLists.txt new file mode 100644 index 000000000..4ade05f0e --- /dev/null +++ b/remmina-plugins/libvncserver/CMakeLists.txt @@ -0,0 +1,48 @@ +# libvncclient - The GTK+ Remote Desktop Client +# +# Copyright (C) 2011 Marc-Andre Moreau +# +# This program 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 2 of the License, or +# (at your option) any later version. +# +# This program 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 this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, +# Boston, MA 02111-1307, USA. + +include_directories(${CMAKE_CURRENT_SOURCE_DIR}) +include_directories(${CMAKE_CURRENT_SOURCE_DIR}/common) + +set(REMMINA_VNC_CLIENT_SRCS + libvncclient/cursor.c + libvncclient/listen.c + common/lzoconf.h + common/minilzo.c + common/minilzo.h + libvncclient/rfbproto.c + libvncclient/sockets.c + libvncclient/tls.c + libvncclient/tls.h + libvncclient/tight.c + libvncclient/vncviewer.c + libvncclient/zlib.c + libvncclient/zrle.c + ) + +add_library(vncclient ${REMMINA_VNC_CLIENT_SRCS}) + +find_package(GTK3 REQUIRED) + +if(GTK3_FOUND) + add_definitions(-DWITH_GTK3) + include_directories(${GTK3_INCLUDE_DIRS}) + target_link_libraries(vncclient ${GTK3_LIBRARY_DIRS}) +endif() + diff --git a/remmina-plugins/nx/CMakeLists.txt b/remmina-plugins/nx/CMakeLists.txt new file mode 100644 index 000000000..cf5118f1f --- /dev/null +++ b/remmina-plugins/nx/CMakeLists.txt @@ -0,0 +1,38 @@ +# remmina-plugin-nx - The GTK+ Remote Desktop Client +# +# Copyright (C) 2011 Marc-Andre Moreau +# +# This program 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 2 of the License, or +# (at your option) any later version. +# +# This program 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 this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, +# Boston, MA 02111-1307, USA. + +set(REMMINA_PLUGIN_NX_SRCS + remminanxsession.c + remminanxsession.h + remminanxsessionmanager.c + remminanxsessionmanager.h + remminapluginnx.c + remminapluginnx.h + ) + +add_library(remmina-plugin-nx ${REMMINA_PLUGIN_NX_SRCS}) + +find_package(GTK3 REQUIRED) + +if(GTK3_FOUND) + add_definitions(-DWITH_GTK3) + include_directories(${GTK3_INCLUDE_DIRS}) + target_link_libraries(remmina-plugin-nx ${GTK3_LIBRARY_DIRS}) +endif() + diff --git a/remmina-plugins/nx/remminanxsession.c b/remmina-plugins/nx/remminanxsession.c index 37b981d4c..b64a363d1 100644 --- a/remmina-plugins/nx/remminanxsession.c +++ b/remmina-plugins/nx/remminanxsession.c @@ -18,6 +18,8 @@ * Boston, MA 02111-1307, USA. */ +#include <errno.h> +#include <pthread.h> #include "common/remminaplugincommon.h" #include <glib/gstdio.h> #include <libssh/libssh.h> diff --git a/remmina-plugins/nx/remminapluginnx.c b/remmina-plugins/nx/remminapluginnx.c index 2a92c41be..2da950fac 100644 --- a/remmina-plugins/nx/remminapluginnx.c +++ b/remmina-plugins/nx/remminapluginnx.c @@ -18,6 +18,8 @@ * Boston, MA 02111-1307, USA. */ +#include <errno.h> +#include <pthread.h> #include "common/remminaplugincommon.h" #include <gtk/gtkx.h> #include <time.h> diff --git a/remmina-plugins/rdp/CMakeLists.txt b/remmina-plugins/rdp/CMakeLists.txt index fdc0be827..ab4dc539b 100644 --- a/remmina-plugins/rdp/CMakeLists.txt +++ b/remmina-plugins/rdp/CMakeLists.txt @@ -1,4 +1,4 @@ -# src/remmina - The GTK+ Remote Desktop Client +# remmina-plugin-gtk - The GTK+ Remote Desktop Client # # Copyright (C) 2011 Marc-Andre Moreau # diff --git a/remmina-plugins/telepathy/CMakeLists.txt b/remmina-plugins/telepathy/CMakeLists.txt new file mode 100644 index 000000000..70d424c63 --- /dev/null +++ b/remmina-plugins/telepathy/CMakeLists.txt @@ -0,0 +1,33 @@ +# remmina-plugin-telepathy - The GTK+ Remote Desktop Client +# +# Copyright (C) 2011 Marc-Andre Moreau +# +# This program 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 2 of the License, or +# (at your option) any later version. +# +# This program 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 this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, +# Boston, MA 02111-1307, USA. + +set(REMMINA_PLUGIN_TELEPATHY_SRCS + remminaplugintelepathy.c + ) + +add_library(remmina-plugin-telepathy ${REMMINA_PLUGIN_TELEPATHY_SRCS}) + +find_package(GTK3 REQUIRED) + +if(GTK3_FOUND) + add_definitions(-DWITH_GTK3) + include_directories(${GTK3_INCLUDE_DIRS}) + target_link_libraries(remmina-plugin-telepathy ${GTK3_LIBRARY_DIRS}) +endif() + diff --git a/remmina-plugins/vnc/CMakeLists.txt b/remmina-plugins/vnc/CMakeLists.txt new file mode 100644 index 000000000..05e50385d --- /dev/null +++ b/remmina-plugins/vnc/CMakeLists.txt @@ -0,0 +1,33 @@ +# remmina-plugin-vnc - The GTK+ Remote Desktop Client +# +# Copyright (C) 2011 Marc-Andre Moreau +# +# This program 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 2 of the License, or +# (at your option) any later version. +# +# This program 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 this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, +# Boston, MA 02111-1307, USA. + +set(REMMINA_PLUGIN_VNC_SRCS + remminapluginvnc.c + ) + +add_library(remmina-plugin-vnc ${REMMINA_PLUGIN_VNC_SRCS}) + +find_package(GTK3 REQUIRED) + +if(GTK3_FOUND) + add_definitions(-DWITH_GTK3) + include_directories(${GTK3_INCLUDE_DIRS}) + target_link_libraries(remmina-plugin-vnc ${GTK3_LIBRARY_DIRS}) +endif() + diff --git a/remmina-plugins/xdmcp/CMakeLists.txt b/remmina-plugins/xdmcp/CMakeLists.txt new file mode 100644 index 000000000..1e98687e0 --- /dev/null +++ b/remmina-plugins/xdmcp/CMakeLists.txt @@ -0,0 +1,33 @@ +# remmina-plugin-xdmcp - The GTK+ Remote Desktop Client +# +# Copyright (C) 2011 Marc-Andre Moreau +# +# This program 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 2 of the License, or +# (at your option) any later version. +# +# This program 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 this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, +# Boston, MA 02111-1307, USA. + +set(REMMINA_PLUGIN_XDMCP_SRCS + remminapluginxdmcp.c + ) + +add_library(remmina-plugin-xdmcp ${REMMINA_PLUGIN_XDMCP_SRCS}) + +find_package(GTK3 REQUIRED) + +if(GTK3_FOUND) + add_definitions(-DWITH_GTK3) + include_directories(${GTK3_INCLUDE_DIRS}) + target_link_libraries(remmina-plugin-xdmcp ${GTK3_LIBRARY_DIRS}) +endif() + |