From 49ee6995aae8bd8db3424ab59654e396f0ae6a62 Mon Sep 17 00:00:00 2001 From: Daniel Brunner <0xFEEDC0DE64@gmail.com> Date: Sun, 14 Oct 2018 15:13:36 +0200 Subject: [PATCH] cmake plugin fixes --- CMakeLists.txt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0e083b6..d72db49 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,14 @@ set(SOURCES helloworldplugin.cpp ) -add_library(helloworldplugin SHARED ${HEADERS} ${SOURCES}) +set(OTHER_FILES + helloworldplugin.json +) -target_link_libraries(helloworldplugin Qt5::Core Qt5::Network webserverlib) +add_library(webserver-plugins-helloworldplugin SHARED ${HEADERS} ${SOURCES} ${OTHER_FILES}) + +set_target_properties(webserver-plugins-helloworldplugin PROPERTIES OUTPUT_NAME helloworldplugin PREFIX "") + +target_link_libraries(webserver-plugins-helloworldplugin Qt5::Core Qt5::Network webserverlib) + +add_dependencies(webserver-plugins webserver-plugins-helloworldplugin)