Index: telldus-core/driver/libtelldus-core/CMakeLists.txt
===================================================================
--- telldus-core/driver/libtelldus-core/CMakeLists.txt	(revision f96647656357d4246589aafc357685e915eb1a10)
+++ telldus-core/driver/libtelldus-core/CMakeLists.txt	(revision e145f8fa8361c30399a76a8761f6f83d8de4cfeb)
@@ -162,7 +162,10 @@
 )
 
+IF (NOT LIBRARY_DIR)
+	SET(LIBRARY_DIR "lib")
+ENDIF (NOT LIBRARY_DIR)
 
 INSTALL(TARGETS ${telldus-core_TARGET}
-	LIBRARY         DESTINATION   lib
+	LIBRARY         DESTINATION   ${LIBRARY_DIR}
 	FRAMEWORK       DESTINATION   "/Library/Frameworks"
 	PUBLIC_HEADER   DESTINATION   include
