My demo application depends on mbed-client. In addition I need to link a proprietary library, foo.a.
CMakeLists.txt in demo/source contains the following two lines:
#demo.c implements my mbed-client demo, which also requires foo.a
add_executable (demo demo.c)
#Link foo.a (in addition to all the other libraries mbed-client depends on such as HAL/CMSIS)
target_link_libraries (demo foo.a)
The linker reported error: Cannot find entry symbol Reset_Handler. I know my demo runs on the K64 target if I don’t include foo.a.
Question: What is the proper way to include a proprietary library?