I have two separate projects, each builds a shared lib that links with a common static lib. In each of the shared libs' CMakeLists.txt I'll have:
add_dependencies(my_shared1 my_common_lib)
and
add_dependencies(my_shared2 my_common_lib)
The static lib has its own sources and resides in its own folder. What is the best way to define the common static cmake script?