From 86f1da7baba383d838d77e731d34cd25afcaf0ef Mon Sep 17 00:00:00 2001 From: KangLin Date: Mon, 29 Mar 2021 01:30:28 -0700 Subject: [PATCH] CMake: install documents, configure, script files --- CMakeLists.txt | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a5810d4..11d40c5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -85,3 +85,31 @@ ADD_CUSTOM_TARGET(uninstall add_subdirectory(src) +install(DIRECTORY man DESTINATION . + COMPONENT Runtime) +install(DIRECTORY turndb/ + DESTINATION share/turnserver + COMPONENT Runtime) +install(DIRECTORY turndb/ + DESTINATION doc/turnserver + COMPONENT Runtime) +install(FILES + LICENSE + README.turnserver + README.turnadmin + README.turnutils + INSTALL + postinstall.txt + DESTINATION doc/turnserver + COMPONENT Runtime) +install(FILES examples/etc/turnserver.conf + DESTINATION ${CMAKE_INSTALL_SYSCONFDIR} + COMPONENT Runtime + RENAME turnserver.conf.default + ) +install(DIRECTORY + examples/etc + examples/scripts + DESTINATION share/examples/turnserver + PATTERN "rfc5769.sh" EXCLUDE + )