nRF5 with CMake - Part 2: Porting the Makefile to CMake
Initial porting SDK files The starting point for the port is the SDK library, currently in the nordic folder. The first part is to convert the SDK files and defines into something CMake-compatible. This includes splitting out the main.c-file from the pure SDK-related files. As the Nordic SDK is already a blob of SDK_SRC and INC_FOLDERS, these lists of files can be converted into CMake lists using the set()-function. Note that CMake uses curly-brackets instead of parenthesis when referencing variables (in this case $(SDK_ROOT))....