afm-launch.conf: handle services through application/vnd.agl.service mimetype
[src/app-framework-main.git] / conf / CMakeLists.txt
index 078253c..31a5963 100644 (file)
 
 cmake_minimum_required(VERSION 2.8)
 
+configure_file(afm-launch.conf.in afm-launch.conf)
+
 if(NOT USE_SDK)
        setc(SYSCONFDIR_DBUS_SYSTEM ${CMAKE_INSTALL_SYSCONFDIR}/dbus-1/system.d)
        setc(SYSCONFDIR_DBUS_USER   ${CMAKE_INSTALL_SYSCONFDIR}/dbus-1/session.d)
        setc(UNITDIR_SYSTEM         ${CMAKE_INSTALL_LIBDIR}/systemd/system)
        setc(UNITDIR_USER           ${CMAKE_INSTALL_LIBDIR}/systemd/user)
 
-       install(FILES afm-system-daemon.conf    DESTINATION ${SYSCONFDIR_DBUS_SYSTEM})
-       install(FILES afm-system-daemon.service DESTINATION ${UNITDIR_SYSTEM})
-       install(FILES afm-user-daemon.conf      DESTINATION ${SYSCONFDIR_DBUS_USER})
-       install(FILES afm-user-daemon.service   DESTINATION ${UNITDIR_USER})
-       install(FILES afm-launch.conf           DESTINATION ${afm_confdir})
+       install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/afm-system-daemon.conf    DESTINATION ${SYSCONFDIR_DBUS_SYSTEM})
+       install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/afm-system-daemon.service DESTINATION ${UNITDIR_SYSTEM})
+       install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/afm-user-daemon.conf      DESTINATION ${SYSCONFDIR_DBUS_USER})
+       install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/afm-user-daemon.service   DESTINATION ${UNITDIR_USER})
+       install(FILES ${CMAKE_CURRENT_BINARY_DIR}/afm-launch.conf                       DESTINATION ${afm_confdir})
 endif()