mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
ee6be2e1d1
This lets us run the unittest from the command line without setting LD_LIBRARY_PATH. llvm-svn: 202509
27 lines
669 B
CMake
27 lines
669 B
CMake
add_custom_target(UnitTests)
|
|
set_target_properties(UnitTests PROPERTIES FOLDER "Tests")
|
|
|
|
if (APPLE)
|
|
set(CMAKE_INSTALL_RPATH "@executable_path/../../lib")
|
|
else(UNIX)
|
|
set(CMAKE_INSTALL_RPATH "\$ORIGIN/../../lib")
|
|
endif()
|
|
|
|
function(add_llvm_unittest test_dirname)
|
|
add_unittest(UnitTests ${test_dirname} ${ARGN})
|
|
endfunction()
|
|
|
|
add_subdirectory(ADT)
|
|
add_subdirectory(Analysis)
|
|
add_subdirectory(Bitcode)
|
|
add_subdirectory(CodeGen)
|
|
add_subdirectory(DebugInfo)
|
|
add_subdirectory(ExecutionEngine)
|
|
add_subdirectory(IR)
|
|
add_subdirectory(LineEditor)
|
|
add_subdirectory(MC)
|
|
add_subdirectory(Object)
|
|
add_subdirectory(Option)
|
|
add_subdirectory(Support)
|
|
add_subdirectory(Transforms)
|