2009-03-20 14:54:54 +00:00
|
|
|
# This file is part of LyX, the document processor.
|
|
|
|
# Licence details can be found in the file COPYING.
|
|
|
|
#
|
2010-06-01 12:24:21 +00:00
|
|
|
# Copyright (c) 2008-2010 Peter Kümmel, <syntheticpp@gmx.net>
|
|
|
|
# Copyright (c) 2008-2010 Kornel Benko, <Kornel.Benko@berlin.de>
|
2009-03-20 14:54:54 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
project(man)
|
|
|
|
|
|
|
|
SET(_manuals)
|
|
|
|
set(program_suffix ${PROGRAM_SUFFIX})
|
2010-06-01 12:24:21 +00:00
|
|
|
set(version_suffix ${PROGRAM_SUFFIX})
|
|
|
|
set(VERSION "${LYX_MAJOR_VERSION}.${LYX_MINOR_VERSION}")
|
2009-03-20 14:54:54 +00:00
|
|
|
macro(add_manual _mansrc)
|
|
|
|
get_filename_component(_mandest ${_mansrc} NAME_WE)
|
|
|
|
SET(_created_manual "${CMAKE_CURRENT_BINARY_DIR}/${_mandest}${PROGRAM_SUFFIX}.1")
|
|
|
|
configure_file("${TOP_SRC_DIR}/${_mansrc}" ${_created_manual} @ONLY)
|
|
|
|
SET_SOURCE_FILES_PROPERTIES(${_created_manual} GENERATED)
|
|
|
|
LIST(APPEND _manuals ${_created_manual})
|
|
|
|
endmacro(add_manual)
|
|
|
|
|
|
|
|
set(real_pkgdatadir ${LYX_ABS_INSTALLED_DATADIR})
|
2009-03-28 11:08:38 +00:00
|
|
|
foreach(_mn lyx.1in src/client/lyxclient.1in src/tex2lyx/tex2lyx.1in)
|
2009-03-20 14:54:54 +00:00
|
|
|
add_manual(${_mn})
|
|
|
|
endforeach(_mn)
|
|
|
|
|
|
|
|
ADD_CUSTOM_TARGET(man ALL DEPENDS ${_manuals})
|
|
|
|
|
2010-07-11 21:06:29 +00:00
|
|
|
install(FILES ${_manuals} DESTINATION ${LYX_DATA_SUBDIR}man/man1)
|
2009-03-20 14:54:54 +00:00
|
|
|
|
|
|
|
# ADD_MANUALS("lyx")
|
|
|
|
|