--- plugins/calculator/CMakeLists.txt.orig	2018-12-31 15:24:22 UTC
+++ plugins/calculator/CMakeLists.txt
@@ -1,11 +1,12 @@
 cmake_minimum_required(VERSION 3.1.3)
 
 project(calculator)
+find_package(PkgConfig REQUIRED) 
 
 file(GLOB_RECURSE SRC src/*)
 
 find_package(Qt5 5.5.0 REQUIRED COMPONENTS Widgets)
-
+pkg_check_modules(muparser REQUIRED muparser)
 add_library(${PROJECT_NAME} SHARED ${SRC} ${PROJECT_NAME}.qrc metadata.json)
 
 target_include_directories(${PROJECT_NAME} PRIVATE src/)
@@ -14,7 +15,7 @@ target_link_libraries(${PROJECT_NAME}
     PRIVATE
         Qt5::Widgets
         albert::lib
-        muparser
+        ${muparser_LDFLAGS}
         xdg
 )
 
