# Set up package config.
configure_file(lib${UNITY_SCOPES_LIB}.pc.in lib${UNITY_SCOPES_LIB}.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/lib${UNITY_SCOPES_LIB}.pc DESTINATION ${LIB_INSTALL_PREFIX}/pkgconfig)

# upstart job for smart scopes proxy
configure_file(smart-scopes-proxy.conf.in smart-scopes-proxy.conf @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/smart-scopes-proxy.conf DESTINATION ${CMAKE_INSTALL_DATADIR}/upstart/sessions)

# upstart job for scope registry
configure_file(scope-registry.conf.in scope-registry.conf @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/scope-registry.conf DESTINATION ${CMAKE_INSTALL_DATADIR}/upstart/sessions)

# Empty directory for scopes to put their conf files into
# If we start install our own conf files here, this can be
# removed (installing files implicitly creates the subdirs)
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${UNITY_SCOPES_LIB})
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${UNITY_SCOPES_LIB}
DESTINATION ${CMAKE_INSTALL_LIBDIR})
