Sun, 26 Jun 2022 21:00:06 +0300
Move render layer files to new src/layers/ directory
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 )