2008-12-28 13:35:29 +00:00
|
|
|
# This file is part of LyX, the document processor.
|
|
|
|
# Licence details can be found in the file COPYING.
|
|
|
|
#
|
2011-01-10 23:24:00 +00:00
|
|
|
# Copyright (c) 2008-2011 Peter Kümmel, <syntheticpp@gmx.net>
|
|
|
|
# Copyright (c) 2008-2011 Kornel Benko, <Kornel.Benko@berlin.de>
|
2008-12-28 13:35:29 +00:00
|
|
|
#
|
|
|
|
|
2009-01-06 18:51:00 +00:00
|
|
|
project(man)
|
2008-12-28 13:35:29 +00:00
|
|
|
|
|
|
|
SET(_manuals)
|
2009-03-09 14:30:28 +00:00
|
|
|
set(program_suffix ${PROGRAM_SUFFIX})
|
2009-03-29 07:33:54 +00:00
|
|
|
set(version_suffix ${PROGRAM_SUFFIX})
|
|
|
|
set(VERSION "${LYX_MAJOR_VERSION}.${LYX_MINOR_VERSION}")
|
2011-01-10 23:24:00 +00:00
|
|
|
|
2008-12-28 13:35:29 +00:00
|
|
|
macro(add_manual _mansrc)
|
2011-01-10 23:24:00 +00:00
|
|
|
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})
|
2008-12-28 13:35:29 +00:00
|
|
|
endmacro(add_manual)
|
|
|
|
|
|
|
|
set(real_pkgdatadir ${LYX_ABS_INSTALLED_DATADIR})
|
2009-03-20 11:39:38 +00:00
|
|
|
foreach(_mn lyx.1in src/client/lyxclient.1in src/tex2lyx/tex2lyx.1in)
|
2011-01-10 23:24:00 +00:00
|
|
|
add_manual(${_mn})
|
2008-12-28 13:35:29 +00:00
|
|
|
endforeach(_mn)
|
|
|
|
|
|
|
|
ADD_CUSTOM_TARGET(man ALL DEPENDS ${_manuals})
|
2014-02-03 17:13:00 +00:00
|
|
|
set_target_properties(man PROPERTIES FOLDER "doc")
|
2008-12-28 13:35:29 +00:00
|
|
|
|
2013-09-06 12:56:31 +00:00
|
|
|
install(FILES ${_manuals} DESTINATION ${LYX_MAN_DIR}/man1)
|
2008-12-28 13:35:29 +00:00
|
|
|
|
|
|
|
# ADD_MANUALS("lyx")
|
|
|
|
|