CMake with include and source paths - basic setup

Posted by user912403 on Stack Overflow See other posts from Stack Overflow or by user912403
Published on 2011-11-29T00:13:15Z Indexed on 2011/11/29 1:50 UTC
Read the original article Hit count: 93

Filed under:
|

I'm trying to set up a test project looking like my own project just to get things working first and it looks like this:

/MainProject/inc/main.h
/MainProject/src/main.cpp
/LibProject/inc/test.h
/LibProject/src/test.cpp

I've found some tutorials, but I cant find out how to set up this when I have the inc and src folder? How would the CMakeLists.txt files look? Would I have one in /, one in each of the project folders? It seems like I dont need to have one in the inc and src folders?

© Stack Overflow or respective owner

Related posts about c++

Related posts about cmake