how to specify static library dependency on current project in CMakeLists.txt
Previously, I posted a question, I will rephrase it here.
I am building a simple project "my_application". I have all source (.c, and .h files) under "my_application". My CMakeLists.txt file is under "my_application".
In this project, I need to link to a static library called "example_library.a".
The way, I generate "example_library.a" is as follows. "example_library.a" needs some definition from "my_application". In the makefile which is used to generate "example_library.a" , I add the needed paths to "my_application". It compiles fine and result is "example_library.a".
After linking to "example_library.a" in CMakeLists.txt, when I run cmake, it reports an error from linked static library.
~/IMPLEMENTATIONS/PollingServer/ftt-se/src/modules/ftt-core.layer/master/M_Server.h:5: error: my_types.h: No such file or directory
Please note that "my_types.h" is found under "my_application".