From dd9a802209b6d7a41f16b0123090b93a428c9404 Mon Sep 17 00:00:00 2001 From: Stephane Desneux Date: Fri, 8 Jul 2016 19:22:22 +0200 Subject: cmake: handle build for SDK When building for SDK, only the wgtpkg tools should be built Change-Id: I2f935bae1b26d1d0e8b9513ade85703f8f49cf9d Signed-off-by: Stephane Desneux --- conf/CMakeLists.txt | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'conf') diff --git a/conf/CMakeLists.txt b/conf/CMakeLists.txt index 62bdf0f..078253c 100644 --- a/conf/CMakeLists.txt +++ b/conf/CMakeLists.txt @@ -18,14 +18,16 @@ cmake_minimum_required(VERSION 2.8) -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) +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 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}) +endif() -- cgit 1.2.3-korg