Hello every one,
I’m doing my first library (shared and static) in C++ with cmake.
The idea is i could just compile it and install it as all other libraries to include it to other projects
My project have this structure.
|-root
| | - data_structure
| | | - CMakeLists.txt
| | | - enums.h
| | | - exceptions.cpp
| | | - exceptions.h
| | | - point.cpp
| | | - point.h
| |
| | - exemples
| | | - CMakeLists.txt
| | | - ex1.cpp
| |
| | - optimizer
| | | - CMakeLists.txt
| | | - utils.h
| | | - utils.cpp
| | | - local_research
| | | | - CMakeLists.txt
| | | | - local_research.cpp
| | | | - local_research.h
|
| - CMakeLists.txt
My problem is i dont know what to write in my cmakelists. I tried several things but that fail all time. what will be the minimal code that i have to write in all my CMakeLists to get an installable librairy ?
Thank you in advance