Skip to content

Instantly share code, notes, and snippets.

@muflone
Created May 10, 2014 23:07
Show Gist options
  • Save muflone/347d291596247c6e67e7 to your computer and use it in GitHub Desktop.
Save muflone/347d291596247c6e67e7 to your computer and use it in GitHub Desktop.
remmina/CMakeLists.txt
# src/remmina - 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_SRCS
src/remmina_about.c
src/remmina_about.h
src/remmina_applet_menu.c
src/remmina_applet_menu.h
src/remmina_applet_menu_item.c
src/remmina_applet_menu_item.h
src/remmina_avahi.c
src/remmina_avahi.h
src/remmina.c
src/remmina_chain_button.c
src/remmina_chain_button.h
src/remmina_chat_window.c
src/remmina_chat_window.h
src/remmina_connection_window.c
src/remmina_connection_window.h
src/remmina_crypt.c
src/remmina_crypt.h
src/remmina_exec.c
src/remmina_exec.h
src/remmina_file.c
src/remmina_file_editor.c
src/remmina_file_editor.h
src/remmina_file.h
src/remmina_file_manager.c
src/remmina_file_manager.h
src/remmina_ftp_client.c
src/remmina_ftp_client.h
src/remmina_icon.c
src/remmina_icon.h
src/remmina_init_dialog.c
src/remmina_init_dialog.h
src/remmina_key_chooser.c
src/remmina_key_chooser.h
src/remmina_log.c
src/remmina_log.h
src/remmina_main.c
src/remmina_main.h
src/remmina_marshals.c
src/remmina_marshals.h
src/remmina_marshals.list
src/remmina_plugin_manager.c
src/remmina_plugin_manager.h
src/remmina_pref.c
src/remmina_pref_dialog.c
src/remmina_pref_dialog.h
src/remmina_pref.h
src/remmina_protocol_widget.c
src/remmina_protocol_widget.h
src/remmina_public.c
src/remmina_public.h
src/remmina_scaler.c
src/remmina_scaler.h
src/remmina_scrolled_viewport.c
src/remmina_scrolled_viewport.h
src/remmina_sftp_client.c
src/remmina_sftp_client.h
src/remmina_sftp_plugin.c
src/remmina_sftp_plugin.h
src/remmina_ssh.c
src/remmina_ssh.h
src/remmina_ssh_plugin.c
src/remmina_ssh_plugin.h
src/remmina_string_array.c
src/remmina_string_array.h
src/remmina_string_list.c
src/remmina_string_list.h
src/remmina_widget_pool.c
src/remmina_widget_pool.h
)
add_executable(remmina ${REMMINA_SRCS})
include_directories(${GTK_INCLUDE_DIRS})
target_link_libraries(remmina ${GTK_LIBRARIES})
find_suggested_package(LIBSSH)
if(LIBSSH_FOUND)
add_definitions(-DHAVE_LIBSSH)
include_directories(${LIBSSH_INCLUDE_DIRS})
target_link_libraries(remmina ${LIBSSH_LIBRARIES})
endif()
if(GCRYPT_FOUND)
include_directories(${GCRYPT_INCLUDE_DIRS})
target_link_libraries(remmina ${GCRYPT_LIBRARIES})
endif()
if(AVAHI_FOUND)
include_directories(${AVAHI_INCLUDE_DIRS})
target_link_libraries(remmina ${AVAHI_LIBRARIES})
endif()
if(GTK3_FOUND)
set(_VTE_VERSION_NUM 2.90)
else()
set(_VTE_VERSION_NUM)
endif()
find_suggested_package(VTE _VTE_VERSION_NUM)
if(VTE_FOUND)
add_definitions(-DHAVE_LIBVTE)
include_directories(${VTE_INCLUDE_DIRS})
target_link_libraries(remmina ${VTE_LIBRARIES})
endif()
if(GTK3_FOUND)
find_suggested_package(APPINDICATOR)
if(APPINDICATOR_FOUND)
add_definitions(-DHAVE_LIBAPPINDICATOR)
include_directories(${APPINDICATOR_INCLUDE_DIRS})
target_link_libraries(remmina ${APPINDICATOR_LIBRARIES})
endif()
endif()
add_subdirectory(po)
add_subdirectory(icons)
add_subdirectory(desktop)
#add_definitions(-lgmodule-2.0 -pthread -lglib-2.0)
target_link_libraries(remmina -lX11 -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lpthread -lgnutls)
install(TARGETS remmina DESTINATION ${CMAKE_INSTALL_BINDIR})
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/remmina.pc.in ${CMAKE_CURRENT_BINARY_DIR}/remmina.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/remmina.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment