A library in multiple directories

I’m building two libraries and bunch of programs. Assume I have one of each since I can copy the recipe. Call them libssl and openssl. Do I build them in the toplevel CMakeList file? I prefer to define and build them in libssl/CMakeLists and openssl/CmakeLists

The libssl is files in libssl, it also has record and record/methods subdirectories. It seems simplest to just list all files in libssl/CMakeLists. That will not work for the other library, call it libcrypto, which has 70 files and 68 sub-directories.

Thanks for any help. This is my first CMake project; I know I should have started smaller :slight_smile:

Never mind, I confused include() and add_subdirectory() :frowning: