diff --git a/CMakeLists.txt b/CMakeLists.txt
index eb1608b..195cefd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -180,6 +180,8 @@ include_directories(
 target_link_libraries(libslim
     ${JPEG_LIBRARIES}
 	${PNG_LIBRARIES}
+	${X11_Xft_LIB}
+	${X11_Xrandr_LIB}
 )
 
 #Set up library with all found packages for slim