mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 02:33:33 +00:00
unittests/CMakeLists.txt: Tweak unittests' layout to be identical to GNU build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121117 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3b3148f864
commit
b3d37e3097
@ -1,10 +1,11 @@
|
||||
function(add_llvm_unittest test_name)
|
||||
function(add_llvm_unittest test_dirname)
|
||||
string(REGEX MATCH "([^/]+)$" test_name ${test_dirname})
|
||||
if (CMAKE_BUILD_TYPE)
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY
|
||||
${LLVM_BINARY_DIR}/unittests/${test_name}/${CMAKE_BUILD_TYPE})
|
||||
${LLVM_BINARY_DIR}/unittests/${test_dirname}/${CMAKE_BUILD_TYPE})
|
||||
else()
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY
|
||||
${LLVM_BINARY_DIR}/unittests/${test_name})
|
||||
${LLVM_BINARY_DIR}/unittests/${test_dirname})
|
||||
endif()
|
||||
if( NOT LLVM_BUILD_TESTS )
|
||||
set(EXCLUDE_FROM_ALL ON)
|
||||
@ -79,13 +80,13 @@ if(MSVC)
|
||||
list(APPEND JITTestsSources ExecutionEngine/JIT/JITTests.def)
|
||||
endif()
|
||||
|
||||
add_llvm_unittest(JIT ${JITTestsSources})
|
||||
add_llvm_unittest(ExecutionEngine/JIT ${JITTestsSources})
|
||||
|
||||
if(MINGW)
|
||||
set_property(TARGET JITTests PROPERTY LINK_FLAGS -Wl,--export-all-symbols)
|
||||
endif()
|
||||
|
||||
add_llvm_unittest(Transforms
|
||||
add_llvm_unittest(Transforms/Utils
|
||||
Transforms/Utils/Cloning.cpp
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user