blob: 92e49388c23b3aa289cacc58a3fc57276ac3677e [file] [log] [blame] [edit]
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -98,7 +98,13 @@
### ktranscript plugin
if (BUILD_WITH_QML)
-add_library(ktranscript MODULE)
+if(BUILD_SHARED_LIBS)
+ set(KTRANSCRIPT_LIBTYPE, MODULE)
+else()
+ set(KTRANSCRIPT_LIBTYPE, STATIC)
+endif()
+
+add_library(ktranscript ${KTRANSCRIPT_LIBTYPE})
target_sources(ktranscript PRIVATE
ktranscript.cpp