--- 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 |