o %%{_libdir}/cmake/%%{name}/*.cmake o config.h.in o Source1: pluginBuild-CMakeLists.txt (with short instructions inside) - Fix error installing devel files /usr/include/remmina/*.h (hack!)epel8
parent
9f3dcb16bc
commit
94198c3d02
@ -0,0 +1,34 @@
|
||||
# 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)
|
Loading…
Reference in new issue