[llvm-commits] [llvm] r117545 - in /llvm/trunk: docs/CMake.html unittests/CMakeLists.txt

Oscar Fuentes ofv at wanadoo.es
Thu Oct 28 07:38:35 PDT 2010


Author: ofv
Date: Thu Oct 28 09:38:35 2010
New Revision: 117545

URL: http://llvm.org/viewvc/llvm-project?rev=117545&view=rev
Log:
Document LLVM_BUILD_TESTS, LLVM_INCLUDE_TESTS. New convenience target
UnitTests for building all the unit tests.

Modified:
    llvm/trunk/docs/CMake.html
    llvm/trunk/unittests/CMakeLists.txt

Modified: llvm/trunk/docs/CMake.html
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/CMake.html?rev=117545&r1=117544&r2=117545&view=diff
==============================================================================
--- llvm/trunk/docs/CMake.html (original)
+++ llvm/trunk/docs/CMake.html Thu Oct 28 09:38:35 2010
@@ -272,6 +272,20 @@
     ON. You can use that option for disabling the generation of build
     targets for the LLVM examples.</dd>
 
+  <dt><b>LLVM_BUILD_TESTS</b>:BOOL</dt>
+  <dd>Build LLVM unit tests. Defaults to OFF. Targets for building
+    each unit test are generated in any case. You can build a specific
+    unit test with the target <i>UnitTestNameTests</i> (where at this
+    time <i>UnitTestName</i> can be ADT, Analysis, ExecutionEngine,
+    JIT, Support, Transform, VMCore; see the subdirectories
+    of <i>unittests</i> for an updated list.) It is possible to build
+    all unit tests with the target <i>UnitTests</i>.</dd>
+
+  <dt><b>LLVM_INCLUDE_TESTS</b>:BOOL</dt>
+  <dd>Generate build targets for the LLVM unit tests. Defaults to
+    ON. You can use that option for disabling the generation of build
+    targets for the LLVM unit tests.</dd>
+
   <dt><b>LLVM_ENABLE_THREADS</b>:BOOL</dt>
   <dd>Build with threads support, if available. Defaults to ON.</dd>
 

Modified: llvm/trunk/unittests/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/CMakeLists.txt?rev=117545&r1=117544&r2=117545&view=diff
==============================================================================
--- llvm/trunk/unittests/CMakeLists.txt (original)
+++ llvm/trunk/unittests/CMakeLists.txt Thu Oct 28 09:38:35 2010
@@ -10,8 +10,11 @@
     set(EXCLUDE_FROM_ALL ON)
   endif()
   add_llvm_executable(${test_name}Tests ${ARGN})
+  add_dependencies(UnitTests ${test_name}Tests)
 endfunction()
 
+add_custom_target(UnitTests)
+
 include_directories(${LLVM_MAIN_SRC_DIR}/utils/unittest/googletest/include)
 set(LLVM_REQUIRES_RTTI 1)
 add_definitions(-DGTEST_HAS_RTTI=0)





More information about the llvm-commits mailing list