diff --git a/modules/Lomiri/Components/Extras/PamAuthentication/CMakeLists.txt b/modules/Lomiri/Components/Extras/PamAuthentication/CMakeLists.txt
index 0857fbb..0618d03 100644
--- a/modules/Lomiri/Components/Extras/PamAuthentication/CMakeLists.txt
+++ b/modules/Lomiri/Components/Extras/PamAuthentication/CMakeLists.txt
@@ -26,18 +26,6 @@ target_link_libraries(PamAuthentication
     Qt::DBus
 )
 
-# Copy the plugin, the qmldir file and other assets to the build dir for running in QtCreator
-if(NOT "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
-    add_custom_command(TARGET PamAuthentication POST_BUILD
-        COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/../${BARE_PLUGIN_DIR}
-        COMMENT "Creating plugin directory layout in the build directory"
-        COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/qmldir ${CMAKE_CURRENT_BINARY_DIR}/../${BARE_PLUGIN_DIR}
-        COMMENT "Copying the qmldir file to the build directory"
-        COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:PamAuthentication> ${CMAKE_CURRENT_BINARY_DIR}/../${BARE_PLUGIN_DIR}
-        COMMENT "Copying the plugin binary to the build directory"
-    )
-endif(NOT "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
-
 # Install plugin file
 install(TARGETS PamAuthentication DESTINATION ${PLUGIN_DIR})
 install(FILES qmldir DESTINATION ${PLUGIN_DIR})
diff --git a/modules/Lomiri/Components/Extras/Printers/CMakeLists.txt b/modules/Lomiri/Components/Extras/Printers/CMakeLists.txt
index 12d53df..b146db0 100644
--- a/modules/Lomiri/Components/Extras/Printers/CMakeLists.txt
+++ b/modules/Lomiri/Components/Extras/Printers/CMakeLists.txt
@@ -54,12 +54,3 @@ target_link_libraries(LomiriComponentsExtrasPrintersQml
     Qt::Concurrent
     ${CUPS_LIBRARIES}
 )
-
-find_package(QmlPlugins)
-
-macro(add_plugin PLUGIN VERSION PATH)
-    export_qmlfiles(${PLUGIN} ${PATH} DESTINATION ${QT_IMPORTS_DIR} ${ARGN})
-    export_qmlplugin(${PLUGIN} ${VERSION} ${PATH} DESTINATION ${QT_IMPORTS_DIR} ${ARGN})
-endmacro()
-
-add_plugin(Lomiri.Components.Extras.Printers 0.1 Lomiri/Components/Extras/Printers TARGETS LomiriComponentsExtrasPrintersQml)
