I am writing a library for example:
FooBar/foobar.cpp
FooBar/foobar.h
FooBar/bar.cpp
FOoBar/bar.h
and foobar.h inlcudes “bar.h”
I want to use cmakefiles to build this library.
What would an example file look like
Note that this doesnt have any “main” function so there are no executable I want to create. I just want to build a library which I can include in different project.
I tried different permutations and combinations
but in every attempt i throws an error in FooBar where I am trying to call a method from bar.cpp?
THanks
1 Answer