qt6-bb10/examples/widgets/tools/echoplugin/plugin/CMakeLists.txt

27 lines
509 B
CMake

qt_add_plugin(echoplugin
CLASS_NAME EchoPlugin
)
target_sources(echoplugin PRIVATE
echoplugin.cpp echoplugin.h
)
set_target_properties(echoplugin PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/echowindow"
)
target_include_directories(echoplugin PUBLIC
../echowindow
)
target_link_libraries(echoplugin PUBLIC
Qt::Core
Qt::Gui
Qt::Widgets
)
install(TARGETS echoplugin
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)