You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
remmina/pluginBuild-CMakeLists.txt

35 lines
1.2 KiB

# Remmina - The GTK+ Remote Desktop Client
#
# Copyright (C) 2014 Pavel Alexeev <Pahan@Hubbitus.info>
# Work based on https://github.com/muflone/remmina-plugin-builder/blob/master/CMakeLists.txt
# dramatically simplified and tied with Fedora remmina package. Thanks to Fabio Castelli.
#
# To build remmina plugin you need:
# 1) install remmina-devel package
# 2) ln -s %{_includedir}/remmina/config.h.in .
# 3) ln -s %{_includedir}/remmina/pluginBuild-CMakeLists.txt CMakeLists.txt
# 4) Put plugin source code in remmina-plugin-to-build directory
# 5) Build it as usual: %{cmake} . ; make %{?_smp_mflags}…
cmake_minimum_required(VERSION 2.6)
set(CMAKE_COLOR_MAKEFILE ON)
project(Remmina C)
set(CMAKE_MODULE_PATH "${LIB_INSTALL_DIR}/cmake/remmina/")
set(REMMINA_DATADIR "${CMAKE_INSTALL_PREFIX}/share")
set(REMMINA_LOCALEDIR "${CMAKE_INSTALL_PREFIX}/share/locale")
set(REMMINA_PLUGINDIR "${LIB_INSTALL_DIR}/remmina/plugins")
include(FindPkgConfig)
include(FindOptionalPackage)
include_directories(.)
add_definitions(-DHAVE_PTHREAD)
find_required_package(GTK)
add_subdirectory(remmina-plugin-to-build)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_SOURCE_DIR}/config.h)