diff --git a/demo/CMakeLists.txt b/demo/CMakeLists.txt
index 4315c6b5ac24b1cf672d187c6500426491951b21..62ecda9dcc1286d08c8cbb68645f8a388afd040d 100644
--- a/demo/CMakeLists.txt
+++ b/demo/CMakeLists.txt
@@ -15,6 +15,7 @@ foreach(s ${sources})
   get_filename_component(swe ${s} NAME_WE)
   add_executable(${swe} ${s})
   target_link_libraries(${swe} ${BASIS_LIBS})
+  install(${swe})
 endforeach(s)
 
 #create the output dir