Files
swift-mirror/tools/swift-llvm-opt/CMakeLists.txt
Michael Gottesman 7e2568dcf0 [cmake-components] Introduce a new API add_swift_host_tool for creating/initializing swift tool targets.
The main action here is to sink the creation of the installation rule for all of
the swift host tools into this API. In a latter commit, I will use this API to
create include and build rules for add_swift_host_tool.
2016-08-28 14:12:14 -07:00

19 lines
329 B
CMake

add_swift_host_tool(swift-llvm-opt
LLVMOpt.cpp
LINK_LIBRARIES
swiftIRGen
# Swift libraries included to appease the linker on linux.
swiftSema
swiftAST
# Clang libraries included to appease the linker on linux.
clangBasic
clangCodeGen
LLVM_COMPONENT_DEPENDS
DebugInfoCodeView
SWIFT_COMPONENT tools
)