Page 1 of 1

How to setup my CMake Projekt

Posted: Thu Aug 29, 2019 8:55 pm
by Nan000
Hi together,

I've just recently switched to the CMake build toolchain and have a lot of problems to set it up for my project structure even with the very good documentation. I hope someone can help me here. Where shall I put CMakeList.txt files and what should be its content?

My Projekt structure looks as follows:

Projekt
|
------ main
| |
| ----main.c
---- Component_1
|
---- Config
| |
| ----- config_1.h
| ----- config_1.c
| ----- config_2.h
| ----- config_1.c
---- Core
| |
| ----- core_1.h
| ----- core_1.c
| ----- core_2.h
| ----- core_1.c
---- Interface
| |
| ----- Interface_1.h
| ----- Interface_1.c
| ----- Interface_2.h
| ----- Interface_2.c
|
---- component.h
---- component.c

Thanks!

Re: How to setup my CMake Projekt

Posted: Fri Aug 30, 2019 2:12 am
by mikemoy
Put it in your main folder