Update CMakeList.txt for some build environments

Issue #5 resolved
Роман Харин created an issue

Hi,

Seems it's better to add some definitions to target_link_libraries() as follow

    ${GLFW_LIBRARIES}
+    ${X11_LIBRARIES}
+   Xinerama
    ${OPENGL_LIBRARY}

This allow avoid getting this errors:

  • undefined reference to symbol 'XConvertSelection'
  • undefined reference to `XineramaQueryExtension'
  • undefined reference to `XineramaIsActive'
  • undefined reference to `XineramaQueryScreens'

Comments (3)

  1. Log in to comment