How to setup my CMake Projekt

Nan000
Posts: 1
Joined: Thu Aug 29, 2019 8:29 pm

How to setup my CMake Projekt

Postby Nan000 » Thu Aug 29, 2019 8:55 pm

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!

mikemoy
Posts: 605
Joined: Fri Jan 12, 2018 9:10 pm

Re: How to setup my CMake Projekt

Postby mikemoy » Fri Aug 30, 2019 2:12 am

Put it in your main folder

Who is online

Users browsing this forum: No registered users and 143 guests