You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by ab...@apache.org on 2013/10/02 11:19:17 UTC

svn commit: r1528396 - /incubator/celix/trunk/framework/CMakeLists.txt

Author: abroekhuis
Date: Wed Oct  2 09:19:16 2013
New Revision: 1528396

URL: http://svn.apache.org/r1528396
Log:
CELIX-55: added option to disable tests.

Modified:
    incubator/celix/trunk/framework/CMakeLists.txt

Modified: incubator/celix/trunk/framework/CMakeLists.txt
URL: http://svn.apache.org/viewvc/incubator/celix/trunk/framework/CMakeLists.txt?rev=1528396&r1=1528395&r2=1528396&view=diff
==============================================================================
--- incubator/celix/trunk/framework/CMakeLists.txt (original)
+++ incubator/celix/trunk/framework/CMakeLists.txt Wed Oct  2 09:19:16 2013
@@ -70,7 +70,9 @@ if (FRAMEWORK) 
     install(TARGETS celix_framework DESTINATION lib COMPONENT framework)
     FILE(GLOB files "public/include/*.h")
     INSTALL(FILES ${files} DESTINATION include/celix COMPONENT framework)
-    
+
+	celix_subproject(FRAMEWORK_TESTS "Option to build the framework tests" "ON" DEPS)
+    if (FRAMEWORK_TESTS)
     #include_directories(${CUNIT_INCLUDE_DIRS})
     include_directories(${CPPUTEST_INCLUDE_DIR})
     include_directories(${CPPUTEST_EXT_INCLUDE_DIR})
@@ -281,5 +283,5 @@ if (FRAMEWORK) 
 	SETUP_TARGET_FOR_COVERAGE(bundle_cache_test_c bundle_cache_test ${CMAKE_BINARY_DIR}/coverage/bundle_cache_test)
 	SETUP_TARGET_FOR_COVERAGE(bundle_archive_test_c bundle_archive_test ${CMAKE_BINARY_DIR}/coverage/bundle_archive_test)
 	SETUP_TARGET_FOR_COVERAGE(attribute_test_c attribute_test ${CMAKE_BINARY_DIR}/coverage/attribute_test)
-	
+	endif (FRAMEWORK_TESTS)
 endif (FRAMEWORK)