-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
25 lines (22 loc) · 773 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
25 lines (22 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# GD32VStdPeriph CMakeLists.txt
# Author: fAiLix
cmake_minimum_required(VERSION 3.19)
add_library(
gd32vf103
OBJECT
"${CMAKE_CURRENT_SOURCE_DIR}/src/n200-driver/n200_func.c"
"${CMAKE_CURRENT_SOURCE_DIR}/src/startup/start.S"
"${CMAKE_CURRENT_SOURCE_DIR}/src/startup/entry.S"
"${CMAKE_CURRENT_SOURCE_DIR}/src/startup/handlers.c"
"${CMAKE_CURRENT_SOURCE_DIR}/src/startup/init.c"
"${CMAKE_CURRENT_SOURCE_DIR}/src/stubs/_exit.c"
"${CMAKE_CURRENT_SOURCE_DIR}/src/stubs/write.c"
)
target_include_directories(
gd32vf103
PUBLIC
"${CMAKE_CURRENT_SOURCE_DIR}/include/n200-driver"
"${CMAKE_CURRENT_SOURCE_DIR}/include/gd32vf103"
PRIVATE
"${CMAKE_CURRENT_SOURCE_DIR}/src/stubs"
)