diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3130ab4b41d11e1f9a810431817b379809c406be..ffe547eba612e3f29ef9887c4852e8c988f90fbe 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -44,5 +44,7 @@ endif(CMAKE_COMPILER_IS_GNUCXX)
 find_package(Boost 1.41 REQUIRED COMPONENTS program_options filesystem system regex)
 
 add_subdirectory(libtoki)
+if(UNIX)
 add_subdirectory(tests)
+endif(UNIX)
 add_subdirectory(toki-app)