Hi guys!
CMake issue with Cairo or libX11
Hi guys!
I am new here and intend to frequent these forums both to answer questions and look for help when needed.
Right now I am teaching myself CMake along with C and C Sharp. I have already been using C++ for a while.
Right now though, I am having an issue with CMake and Cairo Graphics Library and libX11. I have a program I started, when I build I get this message:
Undefined reference to symbol ‘XOpenDisplay’
This is the line of code that generates that error:
Display* d = XOpenDisplay(NULL);
I update CMake with:
cmake -S . -B build/
When I do this it consistently tells me that it is successfully finding the libraries for cairo and libX11, those being:
libXext.so and libXext.so
This leads me to believe that there is something I need to do with my CMakeLists.txt that I am not seeing. I have looked all over, researched to death and am at a loss, so now I am posting for help. I am attaching my CMakeLists.txt
I am using Arch Linux, my IDE is KDevelop. Thank you in advance.