diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index cf3164c..1656759 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,10 +1,16 @@ # LOCATION: projectroot/src -add_executable(main - main.c - ch32v20x_it.c -) add_subdirectory(core) add_subdirectory(peripheral) add_subdirectory(system) add_subdirectory(startup) + + +add_executable(main + main.c + ch32v20x_it.c +) + +target_link_libraries(main + core_riscv +)