cmake: process contrib/

This commit is contained in:
Peter Wu 2016-02-13 18:09:01 +01:00
parent 15adc23277
commit 8c562bd38d
2 changed files with 14 additions and 2 deletions

View File

@ -469,7 +469,7 @@ set(exec_prefix "${CMAKE_INSTALL_PREFIX}")
set(libdir "${CMAKE_INSTALL_FULL_LIBDIR}")
set(includedir "${CMAKE_INSTALL_FULL_INCLUDEDIR}")
set(VERSION "${PACKAGE_VERSION}")
# For init scripts and systemd service file
# For init scripts and systemd service file (in contrib/)
set(bindir "${CMAKE_INSTALL_FULL_BINDIR}")
set(sbindir "${CMAKE_INSTALL_FULL_SBINDIR}")
foreach(name
@ -519,8 +519,8 @@ add_subdirectory(tests)
add_subdirectory(integration-tests)
endif()
add_subdirectory(doc)
if(0)
add_subdirectory(contrib)
if(0)
add_subdirectory(script)
endif()

12
contrib/CMakeLists.txt Normal file
View File

@ -0,0 +1,12 @@
set(CONFIGFILES
nghttpx-init
nghttpx.service
nghttpx-upstart.conf
)
# Note that the execute permissions of nghttpx-init is preserved
foreach(name IN LISTS CONFIGFILES)
configure_file("${name}.in" "${name}" @ONLY)
endforeach()
# set(EXTRA_DIST ${CONFIGFILES} nghttpx-logrotate tlsticketupdate.go)