2011-01-15 04:01:31 +00:00
|
|
|
# synergy -- mouse and keyboard sharing utility
|
|
|
|
# Copyright (C) 2009 Chris Schoeneman, Nick Bolton, Sorin Sbarnea
|
2011-01-15 02:20:14 +00:00
|
|
|
#
|
|
|
|
# This package is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# found in the file COPYING that should have accompanied this file.
|
|
|
|
#
|
|
|
|
# This package 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, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
# List of CPack variables:
|
|
|
|
# http://www.vtk.org/Wiki/CMake:CPackConfiguration
|
|
|
|
|
2011-01-20 20:49:44 +00:00
|
|
|
if (WIN32)
|
|
|
|
message(FATAL_ERROR "CPack support for Windows has been removed.")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
install(TARGETS
|
|
|
|
synergys
|
|
|
|
synergyc
|
|
|
|
COMPONENT core
|
|
|
|
DESTINATION bin)
|
|
|
|
|
|
|
|
if (UNIX)
|
|
|
|
if (APPLE)
|
2011-02-05 23:01:04 +00:00
|
|
|
# no cpack support for apple
|
2011-01-20 20:49:44 +00:00
|
|
|
else()
|
2011-02-05 23:01:04 +00:00
|
|
|
install(FILES bin/qsynergy
|
|
|
|
DESTINATION bin
|
|
|
|
PERMISSIONS
|
|
|
|
OWNER_READ OWNER_WRITE OWNER_EXECUTE
|
|
|
|
GROUP_READ GROUP_EXECUTE
|
|
|
|
WORLD_READ WORLD_EXECUTE)
|
|
|
|
|
|
|
|
# install gnome menu item
|
|
|
|
install(FILES cmake/synergy.desktop
|
|
|
|
DESTINATION share/applications)
|
|
|
|
install(FILES cmd/launcher/synergy.ico
|
|
|
|
DESTINATION share/icons)
|
2011-01-20 20:49:44 +00:00
|
|
|
endif()
|
2011-01-19 03:27:40 +00:00
|
|
|
endif()
|
2011-01-15 02:20:14 +00:00
|
|
|
|
|
|
|
# The default CPack behaviour is not to append the system processor
|
|
|
|
# type, which is undesirable in our case, since we want to support
|
|
|
|
# both 32-bit and 64-bit processors.
|
|
|
|
SET(CPACK_SYSTEM_NAME ${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR})
|
|
|
|
|
|
|
|
# For source code, use .tar.gz on Unix, and .zip on Windows
|
|
|
|
IF(UNIX)
|
|
|
|
SET(CPACK_SOURCE_GENERATOR TGZ)
|
|
|
|
ELSE(UNIX)
|
|
|
|
SET(CPACK_SOURCE_GENERATOR ZIP)
|
2010-06-21 06:38:38 +00:00
|
|
|
ENDIF(UNIX)
|
|
|
|
|
|
|
|
if(APPLE)
|
|
|
|
set(CPACK_SYSTEM_NAME "MacOSX-Universal")
|
2011-01-15 02:20:14 +00:00
|
|
|
endif(APPLE)
|
|
|
|
|
2011-01-15 04:01:31 +00:00
|
|
|
SET(CPACK_PACKAGE_NAME "synergy")
|
|
|
|
SET(CPACK_PACKAGE_VENDOR "The Synergy Project")
|
2011-02-05 23:01:04 +00:00
|
|
|
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Synergy server and client")
|
2011-01-15 02:20:14 +00:00
|
|
|
SET(CPACK_PACKAGE_VERSION_MAJOR ${VERSION_MAJOR})
|
|
|
|
SET(CPACK_PACKAGE_VERSION_MINOR ${VERSION_MINOR})
|
|
|
|
SET(CPACK_PACKAGE_VERSION_PATCH ${VERSION_REV})
|
|
|
|
SET(CPACK_PACKAGE_VERSION ${VERSION})
|
2011-01-15 04:01:31 +00:00
|
|
|
SET(CPACK_PACKAGE_CONTACT http://synergy-foss.org/)
|
2011-01-15 02:20:14 +00:00
|
|
|
SET(CPACK_RESOURCE_FILE_LICENSE "${cmake_dir}/License.rtf")
|
|
|
|
SET(CPACK_RESOURCE_FILE_README "${cmake_dir}/Readme.txt")
|
|
|
|
|
|
|
|
# files to exclude from src package (regex patterns)
|
|
|
|
# to escape, use 4 backslashes (\\\\) -- yuck!
|
|
|
|
SET(CPACK_SOURCE_IGNORE_FILES
|
|
|
|
# temp output dir in root
|
|
|
|
"/bin/"
|
|
|
|
|
|
|
|
# generated config.h file
|
|
|
|
"/config\\\\.h$"
|
|
|
|
|
|
|
|
# buildbot stuff
|
|
|
|
"\\\\.buildbot\\\\-sourcedata$"
|
|
|
|
|
|
|
|
# qt temp build dir
|
|
|
|
"/gui/tmp/.*"
|
|
|
|
|
|
|
|
# qt make file
|
|
|
|
"/gui/Makefile$"
|
|
|
|
|
|
|
|
# qt generated ui headers
|
|
|
|
"/gui/ui_.*\\\\.h$"
|
|
|
|
|
|
|
|
# compiled python files
|
|
|
|
".*\\\\.pyc$"
|
|
|
|
|
|
|
|
# subversion caches (all dirs)
|
|
|
|
".*/\\\\.svn/.*"
|
|
|
|
|
|
|
|
# emacs temporary files
|
|
|
|
".*~$"
|
|
|
|
)
|
|
|
|
|
|
|
|
# Must be last (since it relies of CPACK_ vars).
|
|
|
|
INCLUDE(CPack)
|