I have project with CMake for Ubuntu. I use Windows and Visual Studio for development, project is built on a remote Ubuntu. How add library in project installed in Ubuntu? Is this possible?
if i use
include_directories( ./inc /usr/include/glib-2.0/ /usr/lib/x86_64-linux-gnu/glib-2.0/include )
cmake is looking for files on my windows.
same problem with target_link_libraries(CMakeProject2 glib-2.0)
New contributor
Vit123 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.