Skip to content

Commit

Permalink
Merge pull request #22 from dktrkranz/master
Browse files Browse the repository at this point in the history
Do not use convenience copy of libvncserver
  • Loading branch information
awakecoding committed Feb 12, 2012
2 parents af23f40 + 07634f8 commit e81af86
Show file tree
Hide file tree
Showing 37 changed files with 40 additions and 20,053 deletions.
37 changes: 37 additions & 0 deletions cmake/FindLIBVNCSERVER.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Remmina - The GTK+ Remote Desktop Client
#
# Copyright (C) 2012 Luca Falavigna
#
# 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.

find_package(PkgConfig)
pkg_check_modules(PC_LIBVNCSERVER LibVNCServer)
set(LIBVNCSERVER_DEFINITIONS ${PC_LIBVNCSERVER_CFLAGS_OTHER})

find_path(LIBVNCSERVER_INCLUDE_DIR NAMES rfb/rfb.h
HINTS ${PC_LIBVNCSERVER_INCLUDEDIR} ${PC_LIBVNCSERVER_INCLUDE_DIRS})

find_library(LIBVNCSERVER_LIBRARY NAMES vncserver
HINTS ${PC_LIBVNCSERVER_LIBDIR} ${PC_LIBVNCSERVER_LIBRARY_DIRS})

include(FindPackageHandleStandardArgs)

find_package_handle_standard_args(LIBVNCSERVER DEFAULT_MSG LIBVNCSERVER_LIBRARY LIBVNCSERVER_INCLUDE_DIR)

set(LIBVNCSERVER_LIBRARIES ${LIBVNCSERVER_LIBRARY})
set(LIBVNCSERVER_INCLUDE_DIRS ${LIBVNCSERVER_INCLUDE_DIR})

mark_as_advanced(LIBVNCSERVER_INCLUDE_DIR LIBVNCSERVER_LIBRARY)
3 changes: 2 additions & 1 deletion remmina-plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ if(LIBSSH_FOUND)
target_link_libraries(remmina ${SSH_LIBRARIES})
endif()

find_required_package(LIBVNCSERVER)

find_required_package(XKBFILE)

if(LIBSSH_FOUND AND XKBFILE_FOUND)
Expand All @@ -53,7 +55,6 @@ endif()
find_suggested_package(ZLIB)

if(ZLIB_FOUND)
add_subdirectory(vnc/libvncserver)
add_subdirectory(vnc)
endif()

Expand Down
2 changes: 1 addition & 1 deletion remmina-plugins/vnc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330,
# Boston, MA 02111-1307, USA.

set(LIBVNCSERVER_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/libvncserver)
set(LIBVNCSERVER_INCLUDE_DIRS)
set(LIBVNCSERVER_LIBRARIES vncclient)

set(REMMINA_PLUGIN_VNC_SRCS
Expand Down
102 changes: 0 additions & 102 deletions remmina-plugins/vnc/libvncserver/CMakeLists.txt

This file was deleted.

Loading

0 comments on commit e81af86

Please sign in to comment.