From beff37f3249db9f2edaa7320a467dc2fb360f6b9 Mon Sep 17 00:00:00 2001 From: jakeg00dwin Date: Fri, 6 Dec 2024 21:59:12 -0800 Subject: [PATCH] moved and updated with target link libs. --- src/CMakeLists.txt | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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 +)