Hello Everyone,
Total newbie here!
I’m working through the Cmake examples on the Xmos website and I’ve arrived at https://www.xmos.com/documentation/XM-0 ... ncies.html which is an example on setting up Cmake to handle module dependence’s with sandbox examples. The problem I’ve run into is that there is no main.c with this example and so Cmake fails. Shouldn’t there be a main.c? I’m puzzled.
Can anyone point me in the right direction please?
Thanks in advance for any help I can get :-)
Dependent module example
-
- New User
- Posts: 2
- Joined: Thu Mar 20, 2025 10:55 pm
-
Verified
- Active Member
- Posts: 43
- Joined: Wed May 22, 2024 2:36 pm
Hey, this example looks like it has not included any source files (for conciseness). In order for this application to compile, each src folder would need to contain C/C++/XC files, including one with a main function.
For a complete example look at this test directory: https://github.com/xmos/xcommon_cmake/t ... imple_libs
It contains an app subdirectory (app_simple_libs) with a CMakeLists.txt that depends on some libs.
Note that if your dependent modules are on github, xcommon cmake can clone them into your sandbox automatically
For a complete example look at this test directory: https://github.com/xmos/xcommon_cmake/t ... imple_libs
It contains an app subdirectory (app_simple_libs) with a CMakeLists.txt that depends on some libs.
Note that if your dependent modules are on github, xcommon cmake can clone them into your sandbox automatically
XMOS Software Engineer


-
- New User
- Posts: 2
- Joined: Thu Mar 20, 2025 10:55 pm
Thank you! I should have looked there but didn’t even think of it. I guess the same is true of the other examples as well…
Regards,
Chris
Regards,
Chris