mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-12 22:14:35 +00:00
Cmake build: Add manuals for created executables dv2dt and dt2dv
This commit is contained in:
parent
c62ef12dd3
commit
00a6ad4b66
27
3rdparty/dtl/CMakeLists.txt
vendored
27
3rdparty/dtl/CMakeLists.txt
vendored
@ -13,11 +13,24 @@ endif()
|
|||||||
|
|
||||||
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS ON)
|
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS ON)
|
||||||
|
|
||||||
project(dt2dv C)
|
project(dtl C)
|
||||||
|
set(targets dt2dv dv2dt)
|
||||||
|
|
||||||
if (WIN32)
|
set(_manuals)
|
||||||
set_source_files_properties(dt2dv.c dv2dt.c PROPERTIES LANGUAGE C COMPILE_FLAGS -D_CRT_SECURE_NO_WARNINGS=1)
|
macro(add_man _mansrc)
|
||||||
endif()
|
get_filename_component(_mandest ${_mansrc} NAME_WE)
|
||||||
add_executable(dt2dv dt2dv.c)
|
SET(_created_manual "${CMAKE_CURRENT_BINARY_DIR}/${_mandest}.1")
|
||||||
add_executable(dv2dt dv2dt.c)
|
configure_file("${TOP_SRC_DIR}/3rdparty/dtl/${_mansrc}" ${_created_manual} COPYONLY)
|
||||||
install(TARGETS dv2dt dt2dv DESTINATION ${LYX_UTILITIES_INSTALL_PATH})
|
list(APPEND _manuals ${_created_manual})
|
||||||
|
endmacro(add_man)
|
||||||
|
|
||||||
|
foreach(_t ${targets})
|
||||||
|
if (WIN32)
|
||||||
|
set_source_files_properties(${_t}.c PROPERTIES LANGUAGE C COMPILE_FLAGS -D_CRT_SECURE_NO_WARNINGS=1)
|
||||||
|
endif()
|
||||||
|
add_executable(${_t} ${_t}.c)
|
||||||
|
add_man(${_t}.man)
|
||||||
|
endforeach()
|
||||||
|
|
||||||
|
install(TARGETS ${targets} DESTINATION ${LYX_UTILITIES_INSTALL_PATH})
|
||||||
|
install(FILES ${_manuals} DESTINATION ${LYX_MAN_DIR}/man1)
|
||||||
|
Loading…
Reference in New Issue
Block a user