Skip to content

Next Steps #45

Answered by adepierre
jkrah-git asked this question in Q&A
Aug 7, 2021 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Yeah cmake is a very useful tool but it is a bit intimidating when you're not familiar with it.

You'll find below a small project example to start your own project. It's not much, but it should get you started. I'm assuming you're working with the following structure:

My_Example
├── Botcraft
│   ├── all
│   ├── botcraft
│   ├── stuff
│   ├── 3rdparty
│   ├── CMakeLists.txt
│   └── README.md
├── My_Code
│   ├── include
│   │   └── my_header.hpp
│   ├── src
│   │   └── main.cpp
│   └── CMakeLists.txt
└── CMakeLists.txt

Botcraft folder is the content of this repository while My_Code contains your own code. The root CMakeLists.txt will just glue the two together.

./CMakeLists.txt

cmake_minim…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jkrah-git
Comment options

@jkrah-git
Comment options

@adepierre
Comment options

Answer selected by jkrah-git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants