Skip to content

Commit a89f8c6

Browse files
committed
Lesson 20230413
1 parent 36a214a commit a89f8c6

File tree

6 files changed

+377
-32
lines changed

6 files changed

+377
-32
lines changed

CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,15 @@ add_executable(point ${SOURCE_DIR}/point.c)
7979
target_compile_definitions(point PUBLIC POINT_MAIN)
8080
add_executable(machine ${LIB_SOURCES})
8181
target_compile_definitions(machine PUBLIC MACHINE_MAIN)
82+
add_executable(block ${LIB_SOURCES})
83+
target_compile_definitions(block PUBLIC BLOCK_MAIN)
8284

8385
# Linking
8486
target_link_libraries(hello c-cnc)
8587
target_link_libraries(c-cnc m)
8688
target_link_libraries(point m)
8789
target_link_libraries(machine m)
90+
target_link_libraries(block m)
8891

8992

9093
# _____ _ _ _

arc_accel.pdf

78.3 KB
Binary file not shown.

c-cnc23.code-workspace

+8
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@
2828
"program": "${workspaceFolder}/build/point",
2929
"args": [],
3030
"cwd": "${workspaceFolder}/build"
31+
},
32+
{
33+
"type": "lldb",
34+
"request": "launch",
35+
"name": "block",
36+
"program": "${workspaceFolder}/build/block",
37+
"args": ["machine.ini"],
38+
"cwd": "${workspaceFolder}"
3139
}
3240
],
3341
"compounds": []

0 commit comments

Comments
 (0)