mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-24 20:29:53 +00:00
30d67d99cf
Adding and modifying CMakeLists.txt files to run unit tests under unittests/Target/* if the directory exists. Adding basic unit test to check that code emitter object can be retrieved. Differential Revision: http://reviews.llvm.org/D5523 Change by: Colin LeMahieu git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218986 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
307 B
CMake
16 lines
307 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
MC
|
|
Support
|
|
)
|
|
|
|
add_llvm_unittest(MCTests
|
|
StringTableBuilderTest.cpp
|
|
YAMLTest.cpp
|
|
)
|
|
|
|
foreach(t ${LLVM_TARGETS_TO_BUILD})
|
|
if (IS_DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/${t}")
|
|
add_subdirectory(${t})
|
|
endif (IS_DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/${t}")
|
|
endforeach()
|