dfa78ec
From ef719c161b955643fc46ecbb6b75d600f16682dd Mon Sep 17 00:00:00 2001
7606b92
From: =?UTF-8?q?Dan=20Hor=C3=A1k?= <dan[at]danny.cz>
7606b92
Date: Wed, 18 Jan 2012 20:42:27 +0100
dfa78ec
Subject: [PATCH 4/7] don't build googlemock when NO_TEST_EXE is specified
7606b92
7606b92
---
dfa78ec
 CMakeLists.txt | 5 ++++-
dfa78ec
 1 file changed, 4 insertions(+), 1 deletion(-)
7606b92
7606b92
diff --git a/CMakeLists.txt b/CMakeLists.txt
dfa78ec
index 7f1a55d..4a32c3f 100644
7606b92
--- a/CMakeLists.txt
7606b92
+++ b/CMakeLists.txt
dfa78ec
@@ -78,7 +78,10 @@ if( NOT ZLIB_FOUND )
dfa78ec
 endif()
dfa78ec
 
7606b92
 add_subdirectory( src/zipios )
7606b92
-add_subdirectory( src/googlemock )
dfa78ec
+
dfa78ec
+if( NOT NO_TEST_EXE )
dfa78ec
+    add_subdirectory( src/googlemock )
dfa78ec
+endif()
7606b92
 
dfa78ec
 add_subdirectory( src/FlightCrew )
dfa78ec
 set( FLIGHTCREW_LIBRARIES FlightCrew )
7606b92
-- 
dfa78ec
2.7.1
7606b92