Wiki » Historie » Version 5
Maximilian Seesslen, 09.09.2024 13:37
1 | 1 | Maximilian Seesslen | h1. Wiki |
---|---|---|---|
2 | |||
3 | 2 | Maximilian Seesslen | Base application for functionsality which every device provides. |
4 | 1 | Maximilian Seesslen | |
5 | h2. Integration |
||
6 | |||
7 | The approach of a template class does work. But the hack of first defining structures and macros and then including the vagus header is dirty. |
||
8 | There are also defines for biwak and lepto. Spread this in the cmake files is not nice. |
||
9 | A central header file may work nicer. |
||
10 | 2 | Maximilian Seesslen | |
11 | <pre><code class="shell"> |
||
12 | 3 | Maximilian Seesslen | |
13 | 2 | Maximilian Seesslen | add_compile_options( "-fconcepts" -include ${CMAKE_CURRENT_SOURCE_DIR}/campo/config.h ) |
14 | 3 | Maximilian Seesslen | |
15 | 4 | Maximilian Seesslen | if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/campo/config.h ) |
16 | set ( QHELLO_CONFIG ${CMAKE_CURRENT_SOURCE_DIR}/campo/config.h ) |
||
17 | endif() |
||
18 | |||
19 | if ( QHELLO_CONFIG ) |
||
20 | target_compile_options( |
||
21 | qhello |
||
22 | PRIVATE |
||
23 | -include ${QHELLO_CONFIG} |
||
24 | ) |
||
25 | endif() |
||
26 | 3 | Maximilian Seesslen | |
27 | 2 | Maximilian Seesslen | </code></pre> |
28 | 5 | Maximilian Seesslen | |
29 | There are some depencies to "libcampo". Only the nodeId is needed. This can be made generic. The layout version information has to be in the config header. |