You also need
From: email@example.com <firstname.lastname@example.org> on behalf of Florian Fouillet <Florian.Fouillet@schneider-electric.com>
Sent: Wednesday, November 28, 2018 3:42:54 PM
To: Hovland, Sigvart; email@example.com
Subject: Re: [Zephyr-devel] cmake application project architecture
By adding target_link_libraries(DL PRIVATE zephyr_interface)
I still have the following issue
fatal error: syscall_list.h: No such file or directory
From: Hovland, Sigvart [mailto:Sigvart.Hovland@nordicsemi.no]
Sent: Wednesday, November 28, 2018 4:26 AM
To: Florian Fouillet <Florian.Fouillet@schneider-electric.com>; firstname.lastname@example.org
Subject: RE: cmake application project architecture
[External email: Use caution with links and attachments]
target_link_libraries(DL PRIVATE zephyr_interface)
To your 2nd CMake file could help?
From: email@example.com<mailto:firstname.lastname@example.org> [mailto:email@example.com] On Behalf Of Florian Fouillet
Sent: Tuesday, November 27, 2018 9:53 PM
Subject: [Zephyr-devel] cmake application project architecture
I am currently working on the Zephyr OS with a FDRM_K64f board from NXP.
I want to create my own application using cmake as recommended by the documentation.
However I don’t want to put everything in one CMakeLists.txt. I want to break down my project into libraries (multiple CMakeLists.txt).
Do you know if there is any documentation talking about that?
My top CMakeLists looks like that:
target_sources(app PRIVATE src/main.c)
And my second CMakeLists (under the folder DataLinkLayer) looks like that:
The issue is I can include the boilerplate.cmake in only one CMakeLists.txt otherwise It’s not working, But, the second CmakeLists doesn’t know the zephyr library..
I tried to add: include_directories(/home/user/zephyr/include) in the second CMakeLists but it is not enough. Do you know what should I do?
This email has been scanned by the Symantec Email Security.cloud service.