modified the ch32fun cakelists
This commit is contained in:
parent
f95e82b4cf
commit
e8dad084d0
1 changed files with 14 additions and 13 deletions
|
@ -1,5 +1,16 @@
|
|||
# Compiler flags
|
||||
add_compile_options(
|
||||
|
||||
add_library(ch32fun OBJECT
|
||||
ch32fun.c
|
||||
)
|
||||
|
||||
target_include_directories(ch32fun PUBLIC
|
||||
${CMAKE_CURRENT_LIST_DIR}
|
||||
${CMAKE_SOURCE_DIR}/inc
|
||||
${CMAKE_SOURCE_DIR}/src/extralibs
|
||||
${CMAKE_SOURCE_DIR}/src/ch32fun
|
||||
)
|
||||
|
||||
target_compile_options(ch32fun PRIVATE
|
||||
-g
|
||||
-Os
|
||||
-flto
|
||||
|
@ -15,17 +26,7 @@ add_compile_options(
|
|||
-Wall
|
||||
)
|
||||
|
||||
add_library(ch32fun OBJECT
|
||||
ch32fun.c
|
||||
)
|
||||
|
||||
target_include_directories(ch32fun PUBLIC
|
||||
${CMAKE_CURRENT_LIST_DIR}
|
||||
${CMAKE_SOURCE_DIR}/inc
|
||||
${CMAKE_SOURCE_DIR}/src/extralibs
|
||||
${CMAKE_SOURCE_DIR}/src/ch32fun
|
||||
)
|
||||
|
||||
#target_link_libraries(ch32fun PRIVATE
|
||||
# ${CMAKE_SOURCE_DIR}/libgcc.a
|
||||
#)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue