Sun, 26 Jun 2022 19:44:45 +0300
- Made it build under Qt6
- Fix strangeness involving library path settings
qt_wrap_ui(LDFORGEWIDGETS_FORMS vec3editor.ui multiplyfactordialog.ui matrixeditor.ui ) add_library(ldforgewidgets SHARED colorbutton.cpp colorbutton.h designerplugins.cpp designerplugins.h doublespinbox.cpp doublespinbox.h matrixeditor.cpp matrixeditor.h vec3editor.cpp vec3editor.h multiplyfactordialog.cpp multiplyfactordialog.h ${LDFORGEWIDGETS_FORMS} ) get_target_property(UIPLUGIN_INCLUDES QtUiPlugin INTERFACE_INCLUDE_DIRECTORIES) target_include_directories(ldforgewidgets PUBLIC "${UIPLUGIN_INCLUDES}") target_include_directories(ldforgewidgets PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}") target_include_directories(ldforgewidgets PUBLIC "${CMAKE_CURRENT_BINARY_DIR}") target_link_libraries(ldforgewidgets Qt::Widgets) set_target_properties(ldforgewidgets PROPERTIES AUTOMOC 1) get_target_property(QT_QMAKE_EXECUTABLE Qt::qmake LOCATION) execute_process(COMMAND ${QT_QMAKE_EXECUTABLE} -query QT_INSTALL_PLUGINS OUTPUT_VARIABLE QT_INSTALL_PLUGINS OUTPUT_STRIP_TRAILING_WHITESPACE ) install(TARGETS ldforgewidgets LIBRARY DESTINATION lib) install(TARGETS ldforgewidgets LIBRARY DESTINATION ${QT_INSTALL_PLUGINS}/designer )