llvm-project/parallel-libs/streamexecutor/lib/CMakeLists.txt

25 lines
476 B
CMake

add_library(
utils
OBJECT
Utils/Error.cpp)
add_library(
streamexecutor
$<TARGET_OBJECTS:utils>
Device.cpp
DeviceMemory.cpp
Kernel.cpp
KernelSpec.cpp
PackedKernelArgumentArray.cpp
Platform.cpp
PlatformInterfaces.cpp
PlatformManager.cpp
Stream.cpp)
target_link_libraries(streamexecutor ${llvm_libs})
install(TARGETS streamexecutor DESTINATION lib)
if(STREAM_EXECUTOR_UNIT_TESTS)
add_subdirectory(unittests)
endif()