[CMake] how to specify static library dependency on current project in CMakeLists.txt

2017-07-18 Thread Zahid Iqbal
Hi List, 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_li

[CMake] problem linking a library and addressing cross dependency

2017-07-17 Thread Zahid Iqbal
Hi, I have started using *cmake* recently. I have the following question: For building my system, I am working with two directories. Let's call them *my_application_directory* and *protocol_source_directory. * The code relating to my application resides under *my_application_directory*. In fact