diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-06-26 18:02:13 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-10-15 18:22:47 +0200 |
commit | aa4fe55427a07c86240de347064dc513c4d3efd8 (patch) | |
tree | 3fe784ca6fd68581b5e52666b78b04c4e71def43 /README.md | |
parent | 8d3f2af958884cffa7ce1f6baefcbb063ce90af8 (diff) |
Format
Change-Id: Ia9881d4ac0d89c77bee98b2c773118b6339fcf14
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 31 |
1 files changed, 20 insertions, 11 deletions
@@ -11,8 +11,9 @@ sub CMakeLists.txt installed. Make a globbing search to find source files isn't recommended now to handle project build especially in a multiuser project because CMake will not be aware of new or removed source files. -You'll find simple usage example for different kind of target under the `examples` folder. -More advanced usage can be saw with the [low-level-can-service](https://gerrit.automotivelinux.org/gerrit/apps/low-level-can-service) +You'll find simple usage example for different kind of target under the +`examples` folder. More advanced usage can be saw with the +[low-level-can-service](https://gerrit.automotivelinux.org/gerrit/apps/low-level-can-service) which mix external libraries, binding. Typical project architecture @@ -75,10 +76,11 @@ A typical project architecture would be : Usage ------ -To use these templates files on your project just install the reference files using **git submodule** then use `config.cmake` file to configure your project specificities : +To use these templates files on your project just install the reference files using +**git submodule** then use `config.cmake` file to configure your project specificities : ```bash -git submodule add https://gerrit.automotivelinux.org/gerrit/apps/app-templates conf.d/app-templates +git submodule add https://gerrit.automotivelinux.org/gerrit/apps/app-templatesconf.d/app-templates ``` Specify manually your targets, you should look at samples provided in this @@ -113,7 +115,8 @@ PROJECT_TARGET_ADD(SuperExampleName) --> Adding target to your project add_executable/add_library(${TARGET_NAME}.... --> defining your target sources -SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES.... --> fit target properties for macros usage +SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES.... --> fit target properties +for macros usage INSTALL(TARGETS ${TARGET_NAME}.... @@ -189,9 +192,11 @@ Usage : project_subdirs_add() ``` -You also can specify a globbing pattern as argument to filter which folders will be looked for. +You also can specify a globbing pattern as argument to filter which folders +will be looked for. -To filter all directories that begin with a number followed by a dash the anything: +To filter all directories that begin with a number followed by a dash the +anything: ```cmake project_subdirs_add("[0-9]-*") @@ -199,11 +204,14 @@ project_subdirs_add("[0-9]-*") ### project_targets_populate -Macro use to populate widget tree. To make this works you have to specify some properties to your target : +Macro use to populate widget tree. To make this works you have to specify some +properties to your target : * LABELS : specify *BINDING*, *HTDOCS*, *EXECUTABLE*, *DATA* -* PREFIX : must be empty **""** when target is a *BINDING* else default prefix *lib* will be applied -* OUTPUT_NAME : Name of the output file generated, useful when generated file name is different from `${TARGET_NAME}` +* PREFIX : must be empty **""** when target is a *BINDING* else default prefix + *lib* will be applied +* OUTPUT_NAME : Name of the output file generated, useful when generated file + name is different from `${TARGET_NAME}` Always specify `populate_widget()` macro as the last statement, especially if you use ${TARGET_NAME} variable. Else variable will be set at wrong value with @@ -229,4 +237,5 @@ project_package_build() ### project_closing_message -Will display the closing message configured in `config.cmake` file. Put it at the end of your project CMake file. +Will display the closing message configured in `config.cmake` file. Put it at +the end of your project CMake file. |