sfizz/clients/CMakeLists.txt
Ivan A. Melnikov c82d891e22 Add section suffix to man pages
`man`, at least on some linux distros, ignores files
that don't have have the numeric suffix that corresponds
to the man page section.
This commit adds the suffix to the tools man pages.

Signed-off-by: Ivan A. Melnikov <iv@altlinux.org>
2022-08-24 19:21:38 +04:00

22 lines
1.2 KiB
CMake

string(TIMESTAMP MAN_TODAY "%Y-%m-%d")
if(SFIZZ_JACK)
add_executable(sfizz_jack MidiHelpers.h jack_client.cpp)
target_link_libraries(sfizz_jack PRIVATE sfizz::import sfizz::sfizz sfizz::jack sfizz::spin_mutex absl::flags_parse)
sfizz_enable_lto_if_needed(sfizz_jack)
configure_file(sfizz_jack.man.in sfizz_jack.man @ONLY)
install(TARGETS sfizz_jack DESTINATION ${CMAKE_INSTALL_BINDIR}
COMPONENT "jack" OPTIONAL)
install(FILES ${PROJECT_BINARY_DIR}/clients/sfizz_jack.man DESTINATION ${CMAKE_INSTALL_MANDIR}/man1
RENAME sfizz_jack.1 COMPONENT "jack" OPTIONAL)
endif()
if(SFIZZ_RENDER)
add_executable(sfizz_render MidiHelpers.h sfizz_render.cpp)
target_link_libraries(sfizz_render PRIVATE sfizz::internal sfizz::fmidi sfizz::cxxopts st_audiofile_formats)
sfizz_enable_lto_if_needed(sfizz_render)
configure_file(sfizz_render.man.in sfizz_render.man @ONLY)
install(TARGETS sfizz_render DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT "render" OPTIONAL)
install(FILES ${PROJECT_BINARY_DIR}/clients/sfizz_render.man DESTINATION ${CMAKE_INSTALL_MANDIR}/man1
RENAME sfizz_render.1 COMPONENT "render" OPTIONAL)
endif()