Libraries in CMake as submodule in project

0

I'm developing a C ++ project where I make use of some libraries I've previously produced, the problem I do not know how to import them into my new project without putting the full path in the include and adding all the files in my project's cmake. Home The complete project is available at Github , it has a folder called vendor which is where I want to put all dependencies, but I need to know first as you add them in cmake. Home How would you like to put it in include: #include "Network/Socket.h" Home The file main.cpp compiles normally because it does not need any dependency of the vendor since the server.cpp needs of the Network so it generates an error, and if I am to manually add CMake and include all the libraries becomes impracticable, because the String library has numerous files because of RSA.

    
asked by anonymous 11.10.2016 / 23:12

1 answer

1

You should probably be referring to target_include_directories to include headers and target_link_libraries to include library references.

    
11.10.2016 / 23:41