-# FIXME: make check work on windows
-if host_machine.system() != 'windows'
-subdir('check')
+if not get_option('tests').disabled() and gstcheck_dep.found()
+ subdir('check')
+ subdir('icles')
endif
-subdir('icles')
-# TODO: Implement examples etc
+if not get_option('examples').disabled()
+ subdir('examples')
+endif