1 macros to call in the right orders 4 following macros:
- project_subdirs_add
- project_targets_populate
- project_package_build
- project_closing_msg
Could take 1 argument passed to project_subdirs_add
Change-Id: I4ae7e24f1a865413156c5c70b77098c3a20349b0
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
### project_closing_message
Will display the closing message configured in `config.cmake` file. Put it at
### project_closing_message
Will display the closing message configured in `config.cmake` file. Put it at
-the end of your project CMake file.
+the end of your project CMake file.
\ No newline at end of file
if(NOT BINDINGS_LINK_FLAG)
set(BINDINGS_LINK_FLAG "-Wl,--version-script=${PKG_TEMPLATE_PREFIX}/cmake/export.map")
endif()
if(NOT BINDINGS_LINK_FLAG)
set(BINDINGS_LINK_FLAG "-Wl,--version-script=${PKG_TEMPLATE_PREFIX}/cmake/export.map")
endif()
+
+macro(project_build)
+ set (ARGSLIST ${ARGN})
+ list(LENGTH ARGSLIST ARGSNUM)
+ if(${ARGSNUM} GREATER 0)
+ set(pattern "${ARGV0}")
+ else()
+ set(pattern "*")
+ endif()
+
+ project_subdirs_add(${pattern})
+ project_targets_populate()
+ project_package_build()
+ project_closing_msg()
+endmacro(project_build)
\ No newline at end of file