X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=scripts%2FCMakeLists.txt;h=fb939d1471fd2f06e5555b42d7c799b2fa416775;hb=2a319cf90daa6e3b01e8139923f7073e1c9bcf28;hp=34c37cfc7b13d7b906f962bf01d3ec8322899cd5;hpb=35343f762be7c6b00e0a23cacf7460f741de8bd3;p=src%2Fapp-framework-main.git diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt index 34c37cf..fb939d1 100644 --- a/scripts/CMakeLists.txt +++ b/scripts/CMakeLists.txt @@ -1,5 +1,5 @@ ########################################################################### -# Copyright 2015 IoT.bzh +# Copyright (C) 2015-2019 IoT.bzh # # author: José Bollo # @@ -18,5 +18,13 @@ cmake_minimum_required(VERSION 2.8) -install(PROGRAMS afm-util DESTINATION ${CMAKE_INSTALL_BINDIR}) +if(NOT USE_SDK) + configure_file(afm-util.in afm-util) + install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/afm-util DESTINATION ${CMAKE_INSTALL_BINDIR}) + install(PROGRAMS afm-install DESTINATION ${CMAKE_INSTALL_BINDIR}) + if(AGL_DEVEL) + configure_file(afm-debug.in afm-debug) + install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/afm-debug DESTINATION ${CMAKE_INSTALL_BINDIR}) + endif() +endif()