diff --git a/.gitattributes b/.gitattributes
index e8eba5c3e36860aaa970031559e067b0c224a5ce..c94fae351e0db2e03ab6c5c1c60522887dce852b 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1521,6 +1521,7 @@ CEP/Pipeline/recipes/examples/master/example.py eol=lf
 CEP/Pipeline/recipes/examples/master/example_parallel.py eol=lf
 CEP/Pipeline/recipes/examples/nodes/example_parallel.py eol=lf
 CEP/Pipeline/recipes/sip/CMakeLists.txt eol=lf
+CEP/Pipeline/recipes/sip/bin/CMakeLists.txt -text
 CEP/Pipeline/recipes/sip/bin/genericpipeline.py -text
 CEP/Pipeline/recipes/sip/bin/imaging_pipeline.py -text
 CEP/Pipeline/recipes/sip/bin/loader.py -text
@@ -1545,6 +1546,7 @@ CEP/Pipeline/recipes/sip/demixing/bbs_TauA.parset eol=lf
 CEP/Pipeline/recipes/sip/demixing/bbs_TauA_smoothcal.parset eol=lf
 CEP/Pipeline/recipes/sip/demixing/bbs_VirA.parset eol=lf
 CEP/Pipeline/recipes/sip/demixing/bbs_VirA_smoothcal.parset eol=lf
+CEP/Pipeline/recipes/sip/external/bad_station_detection/CMakeLists.txt -text
 CEP/Pipeline/recipes/sip/helpers/ComplexArray.py -text
 CEP/Pipeline/recipes/sip/helpers/MultipartPostHandler.py -text
 CEP/Pipeline/recipes/sip/helpers/WritableParmDB.py -text
diff --git a/CEP/Pipeline/recipes/sip/CMakeLists.txt b/CEP/Pipeline/recipes/sip/CMakeLists.txt
index 297a997162b28231fd5155ff07d976baa293f234..ed77327d735dd5af81e8662b18bb6aa12e2a8626 100644
--- a/CEP/Pipeline/recipes/sip/CMakeLists.txt
+++ b/CEP/Pipeline/recipes/sip/CMakeLists.txt
@@ -64,24 +64,8 @@ python_install(
   plugins/PipelineStep_combineParsets.py
   DESTINATION lofarpipe/recipes)
 
-lofar_add_bin_scripts(
-  bin/calibration_pipeline.py
-  bin/msss_calibrator_pipeline.py
-  bin/msss_imager_pipeline.py
-  bin/msss_target_pipeline.py
-  bin/preprocessing_pipeline.py
-  bin/imaging_pipeline.py
-  bin/pulsar_pipeline.py
-  bin/long_baseline_pipeline.py
-  bin/selfcal_imager_pipeline.py
-  bin/runPipeline.sh
-  bin/startPython.sh
-  bin/startPythonVersion.sh
-  bin/stopPython.sh
-  bin/genericpipeline.py
-  bin/loader.py
-  external/bad_station_detection/asciistats.py
-  external/bad_station_detection/statsplot.py)
+add_subdirectory(bin)
+add_subdirectory(external/bad_station_detection)
 
 install(FILES
   demixing/bbs_CasA.parset
diff --git a/CEP/Pipeline/recipes/sip/bin/CMakeLists.txt b/CEP/Pipeline/recipes/sip/bin/CMakeLists.txt
new file mode 100644
index 0000000000000000000000000000000000000000..53d89911854d0ef13b1e9f7f7a5f811ba362bfbc
--- /dev/null
+++ b/CEP/Pipeline/recipes/sip/bin/CMakeLists.txt
@@ -0,0 +1,19 @@
+# $Id: CMakeLists.txt 34753 2016-06-20 10:43:42Z schaap $
+
+lofar_add_bin_scripts(
+  calibration_pipeline.py
+  msss_calibrator_pipeline.py
+  msss_imager_pipeline.py
+  msss_target_pipeline.py
+  preprocessing_pipeline.py
+  imaging_pipeline.py
+  pulsar_pipeline.py
+  long_baseline_pipeline.py
+  selfcal_imager_pipeline.py
+  runPipeline.sh
+  startPython.sh
+  startPythonVersion.sh
+  stopPython.sh
+  genericpipeline.py
+  loader.py
+  )
diff --git a/CEP/Pipeline/recipes/sip/external/bad_station_detection/CMakeLists.txt b/CEP/Pipeline/recipes/sip/external/bad_station_detection/CMakeLists.txt
new file mode 100644
index 0000000000000000000000000000000000000000..bca19e5255fd91252d537f1b3d9c5997a69adb74
--- /dev/null
+++ b/CEP/Pipeline/recipes/sip/external/bad_station_detection/CMakeLists.txt
@@ -0,0 +1,6 @@
+# $Id: CMakeLists.txt 34753 2016-06-20 10:43:42Z schaap $
+
+lofar_add_bin_scripts(
+  asciistats.py
+  statsplot.py
+  )