diff --git a/CMakeLists.txt b/CMakeLists.txt
index df58c4ec0c1b78d3a12acf66f17ecd52602f0691..45eb7c7059c1aee3e408bf3297498cca70538d6e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-ADD_LIBRARY( miscmaths
+SET(sources
   miscmaths.cc
   optimise.cc
   miscprob.cc
@@ -13,5 +13,12 @@ ADD_LIBRARY( miscmaths
   cspline.cc
   sparse_matrix.cc
   sparsefn.cc
-  rungekutta.cc )
+  rungekutta.cc)
 
+ADD_LIBRARY(miscmaths ${sources})
+
+INCLUDE_DIRECTORIES(${FSL_DIR}/include)
+INCLUDE_DIRECTORIES(${FSL_DIR}/extras/include/newmat)
+INCLUDE_DIRECTORIES(${FSL_DIR}/extras/include/libprob)
+
+INSTALL_FILES(/include .h ${sources}
\ No newline at end of file