diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-06-11 20:34:40 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-06-11 21:30:22 +0200 |
commit | 8c9ce776ec7d9061304cc462a2de4b76d12fa7ad (patch) | |
tree | 6589db8ba19c7310096efd388bfc39317760abe7 /gui/gui.cmake | |
parent | f1cf449c099f30482f05d9a7c6209321050159d5 (diff) | |
download | nextpnr-8c9ce776ec7d9061304cc462a2de4b76d12fa7ad.tar.gz nextpnr-8c9ce776ec7d9061304cc462a2de4b76d12fa7ad.tar.bz2 nextpnr-8c9ce776ec7d9061304cc462a2de4b76d12fa7ad.zip |
Added property editor for example
Diffstat (limited to 'gui/gui.cmake')
-rw-r--r-- | gui/gui.cmake | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gui/gui.cmake b/gui/gui.cmake index 95a4a397..23f955f9 100644 --- a/gui/gui.cmake +++ b/gui/gui.cmake @@ -22,7 +22,7 @@ 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 ${OPENGL_LIBRARIES}) +set(GUI_LIBRARY_FILES Qt5::Widgets Qt5::OpenGL ${OPENGL_LIBRARIES} QtPropertyBrowser) add_library(QtPropertyBrowser STATIC "") @@ -33,6 +33,7 @@ qt5_generate_moc(3rdparty/QtPropertyBrowser/src/qtpropertymanager.h ${CMAKE_CURR qt5_generate_moc(3rdparty/QtPropertyBrowser/src/qtbuttonpropertybrowser.h ${CMAKE_CURRENT_BINARY_DIR}/generated/moc_qtbuttonpropertybrowser.hpp) qt5_generate_moc(3rdparty/QtPropertyBrowser/src/qteditorfactory.h ${CMAKE_CURRENT_BINARY_DIR}/generated/moc_qteditorfactory.hpp) qt5_generate_moc(3rdparty/QtPropertyBrowser/src/qttreepropertybrowser.h ${CMAKE_CURRENT_BINARY_DIR}/generated/moc_qttreepropertybrowser.hpp) +qt5_generate_moc(3rdparty/QtPropertyBrowser/src/qtpropertybrowserutils_p.h ${CMAKE_CURRENT_BINARY_DIR}/generated/moc_qtpropertybrowserutils_p.cpp) qt5_generate_moc(3rdparty/QtPropertyBrowser/src/qtpropertymanager.cpp ${CMAKE_CURRENT_BINARY_DIR}/generated/qtpropertymanager.moc) qt5_generate_moc(3rdparty/QtPropertyBrowser/src/qttreepropertybrowser.cpp ${CMAKE_CURRENT_BINARY_DIR}/generated/qttreepropertybrowser.moc) @@ -49,10 +50,12 @@ set(QTPB_GENERATED_MOC_FILES ${CMAKE_CURRENT_BINARY_DIR}/generated/qtpropertymanager.moc ${CMAKE_CURRENT_BINARY_DIR}/generated/qttreepropertybrowser.moc ${CMAKE_CURRENT_BINARY_DIR}/generated/qteditorfactory.moc + ${CMAKE_CURRENT_BINARY_DIR}/generated/moc_qtpropertybrowserutils_p.cpp ) +qt5_add_resources_custom(QTPB_RESOURCE_FILES 3rdparty/QtPropertyBrowser/src/qtpropertybrowser.qrc) aux_source_directory(3rdparty/QtPropertyBrowser/src/ QTPROPBROWSER_SRC_ALL) -target_sources(QtPropertyBrowser PRIVATE ${QTPROPBROWSER_SRC_ALL} ${QTPB_GENERATED_MOC_FILES} ) +target_sources(QtPropertyBrowser PRIVATE ${QTPROPBROWSER_SRC_ALL} ${QTPB_GENERATED_MOC_FILES} ${QTPB_RESOURCE_FILES}) target_include_directories(QtPropertyBrowser PRIVATE 3rdparty/QtPropertyBrowser/src generated) -target_link_libraries(QtPropertyBrowser PRIVATE Qt5::Widgets) +target_link_libraries(QtPropertyBrowser PRIVATE Qt5::Core Qt5::Widgets) |