also, to be more consistent i modified the CMakeLists.txt.example.cmake like so:
cmake_minimum_required(VERSION 3.0)
## Required Variable: (if you do not use Kendryte IDE)
# -DTOOLCHAIN=/path/to/rsicv/toolchain/bin
# -DSDK=/path/to/SDK (the folder of this example file)
## Include the SDK library
include("${SDK_ROOT}/cmake/common.cmake")
# add sources for project
add_source_files(
"src/${PROJ}/*.c"
"src/${PROJ}/*.s"
"src/${PROJ}/*.S"
"src/${PROJ}/*.cpp"
)
## Use SDK builder to build this project
include("${SDK_ROOT}/cmake/executable.cmake")
would be nice if you could merge these changes some time.
cheers!
hello, i noticed building projects outside the sdk directory didnt work for me because the third_party sources were not added correctly.
here is the diff to make it work:
also, to be more consistent i modified the CMakeLists.txt.example.cmake like so:
would be nice if you could merge these changes some time. cheers!