Page 2#
We now bring updates to the previous tangle root, by marking incremental-demo-p1
as the parent of our current tangle:
```{lit-setup}
:tangle-root: incremental-demo-p2
:parent: incremental-demo-p1
```
Warning
The same tangle root cannot have multiple parents!
For instance, we add a new source file:
add_executable(App main.cpp foo.h foo.cpp)
Tangled#
Tangled block 'file: CMakeLists.txt' [from here]
cmake_minimum_required(VERSION 3.0...3.25)
project(
LearnWebGPU # name of the project, which will also be the name of the visual studio solution if you use it
VERSION 0.1.0 # any version number
LANGUAGES CXX C # programming languages used by the project
)
add_executable(App main.cpp foo.h foo.cpp)
set_target_properties(App PROPERTIES
CXX_STANDARD 17
COMPILE_WARNING_AS_ERROR ON
)
if (MSVC)
target_compile_options(App PRIVATE /W4)
else()
target_compile_options(App PRIVATE -Wall -Wextra -pedantic)
endif()
# One last note..
We can also tangle only the diff wrt. the previous version:
TODO
```{tangle} CMake, file: CMakeLists.txt
:diff:
```