Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (23 sloc) 837 Bytes
find_package(Qt5 ${MIN_QT_VERSION}
REQUIRED COMPONENTS
Designer
)
# If this is not explicitly included we get the extremely helpful error "Error: Undefined interface"
include_directories(${Qt5Designer_INCLUDE_DIRS})
set(ZtWidgetsPlugin_SOURCES
src/colorpickerplugin.cpp
src/slidereditplugin.cpp
src/ztwidgetsplugincollection.cpp
)
set(ZtWidgetsPlugin_HEADERS
src/colorpickerplugin.h
src/slidereditplugin.h
src/ztwidgetsplugincollection.h
)
qt5_wrap_cpp(ZtWidgetsPlugin_HEADER_MOC
${ZtWidgetsPlugin_HEADERS}
)
add_library(ZtWidgetsPlugin MODULE ${ZtWidgetsPlugin_SOURCES} ${ZtWidgetsPlugin_HEADER_MOC})
target_include_directories(ZtWidgetsPlugin PRIVATE ${ZtWidgets_INCLUDE})
target_link_libraries(ZtWidgetsPlugin ZtWidgets)
install(TARGETS ZtWidgetsPlugin DESTINATION ${CMAKE_INSTALL_PREFIX})
You can’t perform that action at this time.