aboutsummaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-06-11 10:01:25 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2018-06-11 10:01:25 +0200
commit979a14c930b2c4d7b335f49c2fe22d6deea91ec5 (patch)
tree7808ad942e0b93a9b622ee1418bbc89c180752ba /gui
parentb4b5586efd836d79c0d4ab9159130f6f33e27afe (diff)
downloadnextpnr-979a14c930b2c4d7b335f49c2fe22d6deea91ec5.tar.gz
nextpnr-979a14c930b2c4d7b335f49c2fe22d6deea91ec5.tar.bz2
nextpnr-979a14c930b2c4d7b335f49c2fe22d6deea91ec5.zip
OpenGL library portable way of using
Diffstat (limited to 'gui')
-rw-r--r--gui/gui.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/gui.cmake b/gui/gui.cmake
index 6fe1e4ac..6c11a6d1 100644
--- a/gui/gui.cmake
+++ b/gui/gui.cmake
@@ -1,5 +1,6 @@
# Find the Qt5 libraries
find_package(Qt5 COMPONENTS Core Widgets OpenGL REQUIRED)
+find_package(OpenGL REQUIRED)
ADD_DEFINITIONS(-DQT_NO_KEYWORDS)
@@ -23,4 +24,4 @@ qt5_wrap_ui_custom(GENERATED_UI_HEADERS ${UI_SOURCES})
qt5_add_resources_custom(GUI_RESOURCE_FILES gui/nextpnr.qrc)
set(GUI_SOURCE_FILES gui/mainwindow.cc gui/fpgaviewwidget.cc gui/emb.cc ${GENERATED_MOC_FILES} ${GENERATED_UI_HEADERS} ${GUI_RESOURCE_FILES})
-set(GUI_LIBRARY_FILES Qt5::Widgets Qt5::OpenGL GL) \ No newline at end of file
+set(GUI_LIBRARY_FILES Qt5::Widgets Qt5::OpenGL ${OPENGL_LIBRARIES}) \ No newline at end of file