1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/unittests/Target/AMDGPU/CMakeLists.txt
Sebastian Neubauer fd7f783e1e [NFC][AMDGPU] Fix cmake when LLVM is a subproject
CMAKE_SOURCE_DIR is not the right directory if llvm is included in
another cmake project. PROJECT_SOURCE_DIR is always the same and should
be used instead.
2020-04-22 14:25:44 +02:00

17 lines
261 B
CMake

include_directories(
${PROJECT_SOURCE_DIR}/lib/Target/AMDGPU
${PROJECT_BINARY_DIR}/lib/Target/AMDGPU
)
set(LLVM_LINK_COMPONENTS
AMDGPUCodeGen
AMDGPUDesc
AMDGPUInfo
MC
Support
)
add_llvm_target_unittest(AMDGPUTests
DwarfRegMappings.cpp
)