diff options
author | Stephane Desneux <stephane.desneux@iot.bzh> | 2016-07-08 19:22:22 +0200 |
---|---|---|
committer | Stephane Desneux <stephane.desneux@iot.bzh> | 2016-07-09 11:21:16 +0200 |
commit | dd9a802209b6d7a41f16b0123090b93a428c9404 (patch) | |
tree | 37c62dc3ba40e8455c3fcdfd1d480639385a3f8b /conf/CMakeLists.txt | |
parent | 81df68c04dc5e32d5d6d06bc20a7030afdf45f59 (diff) |
cmake: handle build for SDK
When building for SDK, only the wgtpkg tools should be built
Change-Id: I2f935bae1b26d1d0e8b9513ade85703f8f49cf9d
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
Diffstat (limited to 'conf/CMakeLists.txt')
-rw-r--r-- | conf/CMakeLists.txt | 20 |
1 files changed, 11 insertions, 9 deletions
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() |