- CMake module name has changed so the warning message needs to be updated
- Reset the shell color at the end of the warning message.
- Wrong variable used to add target's property
- Complete path to cmake script file, there is a difference between cmake module and
git submodule version
Change-Id: Ia730773cbefef485982da03dbf1281b29485ea51
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
endif()
list(APPEND BINDINGS_LIST "${P}${OUT}${S}")
generate_one_populate_target(${P}${OUT}${S} ${PACKAGE_LIBDIR})
endif()
list(APPEND BINDINGS_LIST "${P}${OUT}${S}")
generate_one_populate_target(${P}${OUT}${S} ${PACKAGE_LIBDIR})
- SET_TARGET_PROPERTIES(${T} PROPERTIES
+ SET_TARGET_PROPERTIES(${TARGET} PROPERTIES
LINK_FLAGS ${BINDINGS_LINK_FLAG}
)
elseif(${T} STREQUAL "BINDINGV2")
LINK_FLAGS ${BINDINGS_LINK_FLAG}
)
elseif(${T} STREQUAL "BINDINGV2")
endif()
afb_genskel("-2")
generate_one_populate_target(${P}${OUT}${S} ${PACKAGE_LIBDIR})
endif()
afb_genskel("-2")
generate_one_populate_target(${P}${OUT}${S} ${PACKAGE_LIBDIR})
- SET_TARGET_PROPERTIES(${T} PROPERTIES
+ SET_TARGET_PROPERTIES(${TARGET} PROPERTIES
LINK_FLAGS ${BINDINGS_LINK_FLAG}
)
elseif(${T} STREQUAL "BINDINGV3")
LINK_FLAGS ${BINDINGS_LINK_FLAG}
)
elseif(${T} STREQUAL "BINDINGV3")
endif()
afb_genskel("-3")
generate_one_populate_target(${P}${OUT}${S} ${PACKAGE_LIBDIR})
endif()
afb_genskel("-3")
generate_one_populate_target(${P}${OUT}${S} ${PACKAGE_LIBDIR})
- SET_TARGET_PROPERTIES(${T} PROPERTIES
+ SET_TARGET_PROPERTIES(${TARGET} PROPERTIES
LINK_FLAGS ${BINDINGS_LINK_FLAG}
)
elseif(${T} STREQUAL "EXECUTABLE")
LINK_FLAGS ${BINDINGS_LINK_FLAG}
)
elseif(${T} STREQUAL "EXECUTABLE")
COMMAND cp ${ICON_PATH} ${PROJECT_PKG_BUILD_DIR}/${PROJECT_ICON}
)
add_custom_command(OUTPUT ${PROJECT_PKG_TEST_DIR}/config.xml ${PROJECT_PKG_TEST_DIR}/bin/launcher
COMMAND cp ${ICON_PATH} ${PROJECT_PKG_BUILD_DIR}/${PROJECT_ICON}
)
add_custom_command(OUTPUT ${PROJECT_PKG_TEST_DIR}/config.xml ${PROJECT_PKG_TEST_DIR}/bin/launcher
- COMMAND ${CMAKE_COMMAND} -DINFILE=${TEST_WIDGET_CONFIG_TEMPLATE} -DOUTFILE=${PROJECT_PKG_TEST_DIR}/config.xml -DPROJECT_BINARY_DIR=${CMAKE_CURRENT_BINARY_DIR} -P ${PROJECT_APP_TEMPLATES_DIR}/cmake/configure_file.cmake
+ COMMAND ${CMAKE_COMMAND} -DINFILE=${TEST_WIDGET_CONFIG_TEMPLATE} -DOUTFILE=${PROJECT_PKG_TEST_DIR}/config.xml -DPROJECT_BINARY_DIR=${CMAKE_CURRENT_BINARY_DIR} -P ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_APP_TEMPLATES_DIR}/cmake/configure_file.cmake
COMMAND mkdir -p ${PROJECT_PKG_TEST_DIR}/bin
COMMAND cp ${ICON_PATH} ${PROJECT_PKG_TEST_DIR}/${PROJECT_ICON}
COMMAND cp ${CMAKE_SOURCE_DIR}/${PROJECT_APP_TEMPLATES_DIR}/test-widget/launcher.sh.in ${PROJECT_PKG_TEST_DIR}/bin/launcher
COMMAND mkdir -p ${PROJECT_PKG_TEST_DIR}/bin
COMMAND cp ${ICON_PATH} ${PROJECT_PKG_TEST_DIR}/${PROJECT_ICON}
COMMAND cp ${CMAKE_SOURCE_DIR}/${PROJECT_APP_TEMPLATES_DIR}/test-widget/launcher.sh.in ${PROJECT_PKG_TEST_DIR}/bin/launcher
include(${file})
endforeach()
include(${file})
endforeach()
-message(STATUS "${Red}You are using the submodule version of app-templates. This version will not be update in the future and you should migrate to the CMake module version. It could be found here: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/src/cmake-apps-module. Using latest SDK with a version > FF include it by default. To migrate deinit the existing app-templates submodule and replace the last line of your config.cmake file with 'include(CMakeAppsHelpers)'. If you directly want to use it, only take the config.sample.cmake file from the CMake module and edit to fit your needs.")
+message(STATUS "${Red}You are using the submodule version of app-templates. This version will not be update in the future and you should migrate to the CMake module version. It could be found here: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/src/cmake-apps-module. Using latest SDK with a version > FF include it by default. To migrate deinit the existing app-templates submodule, it could be then be deleted. To finish, replace the last line of your config.cmake file with 'include(CMakeAfbTemplates)'. If you directly want to use it, only take the config.sample.cmake file from the CMake module and edit to fit your needs.${ColourReset}")
set_install_prefix()
prevent_in_source_build()
set_install_prefix()
prevent_in_source_build()