Lets say we have a library that is part of a larger CMake project, and we want to seperate it out so it can be used in
more projects. For the sake of convenience lets say it is already largely seperate from the parent project, i.e. in its
own directory with a CMakeLists.txt
, and referenced with
add_subdirectory
from the parent project.
In order to fully seperate it we need to:
- Make it buildable on its own. If it has depencies, it needs to use
find_package
itself to find them. If it has