[6efc22]: man / CMakeLists.txt  Maximize  Restore  History

Download this file

29 lines (22 with data), 906 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# This file is part of libpano13, the hugin build environment.
# Licence details can be found in the file COPYING.
#
# Copyright (c) 2009 Kornel Benko, <Kornel.Benko@berlin.de>
#
project(man)
file(GLOB_RECURSE manuals RELATIVE "${TOP_SRC_DIR}/man" "${TOP_SRC_DIR}/man/*.1")
macro(add_manual _mansrc)
get_filename_component(_mandest ${_mansrc} NAME_WE)
SET(_created_manual "${CMAKE_CURRENT_BINARY_DIR}/${_mandest}.1")
configure_file("${TOP_SRC_DIR}/man/${_mansrc}" ${_created_manual} @ONLY)
SET_SOURCE_FILES_PROPERTIES(${_created_manual} GENERATED)
LIST(APPEND _manuals ${_created_manual})
endmacro(add_manual)
set(_manuals)
foreach(_m ${manuals})
# this is not needed now, but maybe we will later
# adapt data like version or date into the manuals
add_manual(${_m})
endforeach(_m)
add_custom_target(man ALL DEPENDS ${_manuals})
install(FILES ${_manuals} DESTINATION "share/man/man1")

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks