mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 21:05:12 +00:00
707eeb22fb
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37174 a592a061-630c-0410-9148-cb99ea01b6c8
34 lines
1.0 KiB
CMake
Executable File
34 lines
1.0 KiB
CMake
Executable File
# This file is part of LyX, the document processor.
|
|
# Licence details can be found in the file COPYING.
|
|
#
|
|
# Copyright (c) 2008-2011 Peter Kümmel, <syntheticpp@gmx.net>
|
|
# Copyright (c) 2008-2011 Kornel Benko, <Kornel.Benko@berlin.de>
|
|
#
|
|
|
|
project(man)
|
|
|
|
SET(_manuals)
|
|
set(program_suffix ${PROGRAM_SUFFIX})
|
|
set(version_suffix ${PROGRAM_SUFFIX})
|
|
set(VERSION "${LYX_MAJOR_VERSION}.${LYX_MINOR_VERSION}")
|
|
|
|
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})
|
|
foreach(_mn lyx.1in src/client/lyxclient.1in src/tex2lyx/tex2lyx.1in)
|
|
add_manual(${_mn})
|
|
endforeach(_mn)
|
|
|
|
ADD_CUSTOM_TARGET(man ALL DEPENDS ${_manuals})
|
|
|
|
install(FILES ${_manuals} DESTINATION ${LYX_DATA_SUBDIR}man/man1)
|
|
|
|
# ADD_MANUALS("lyx")
|
|
|