Wiki » Historie » Revision 4
Revision 3 (Maximilian Seesslen, 09.09.2024 11:56) → Revision 4/5 (Maximilian Seesslen, 09.09.2024 12:58)
h1. Wiki
Base application for functionsality which every device provides.
h2. Integration
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.
There are also defines for biwak and lepto. Spread this in the cmake files is not nice.
A central header file may work nicer.
<pre><code class="shell">
add_compile_options( "-fconcepts" -include ${CMAKE_CURRENT_SOURCE_DIR}/campo/config.h )
if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/campo/config.h ) target_compile_options(
set ( QHELLO_CONFIG ${CMAKE_CURRENT_SOURCE_DIR}/campo/config.h )
endif()
if ( QHELLO_CONFIG ) qhello
target_compile_options( PRIVATE
qhello
PRIVATE
-include ${QHELLO_CONFIG}
)
endif()
</code></pre>
Base application for functionsality which every device provides.
h2. Integration
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.
There are also defines for biwak and lepto. Spread this in the cmake files is not nice.
A central header file may work nicer.
<pre><code class="shell">
add_compile_options( "-fconcepts" -include ${CMAKE_CURRENT_SOURCE_DIR}/campo/config.h )
if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/campo/config.h ) target_compile_options(
set ( QHELLO_CONFIG ${CMAKE_CURRENT_SOURCE_DIR}/campo/config.h )
endif()
if ( QHELLO_CONFIG ) qhello
target_compile_options( PRIVATE
qhello
PRIVATE
-include ${QHELLO_CONFIG}
)
endif()
</code></pre>