mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
cmake: Add Kaleidoscope target
llvm-svn: 225318
This commit is contained in:
parent
7beeede5da
commit
8726c80a5f
@ -1,3 +1,10 @@
|
||||
add_custom_target(Kaleidoscope)
|
||||
|
||||
macro(add_kaleidoscope_chapter name)
|
||||
add_dependencies(Kaleidoscope ${name})
|
||||
add_llvm_example(${name} ${ARGN})
|
||||
endmacro(add_kaleidoscope_chapter name)
|
||||
|
||||
add_subdirectory(Chapter2)
|
||||
add_subdirectory(Chapter3)
|
||||
add_subdirectory(Chapter4)
|
||||
|
@ -1,3 +1,3 @@
|
||||
add_llvm_example(Kaleidoscope-Ch2
|
||||
add_kaleidoscope_chapter(Kaleidoscope-Ch2
|
||||
toy.cpp
|
||||
)
|
||||
|
@ -3,6 +3,6 @@ set(LLVM_LINK_COMPONENTS
|
||||
Support
|
||||
)
|
||||
|
||||
add_llvm_example(Kaleidoscope-Ch3
|
||||
add_kaleidoscope_chapter(Kaleidoscope-Ch3
|
||||
toy.cpp
|
||||
)
|
||||
|
@ -10,6 +10,6 @@ set(LLVM_LINK_COMPONENTS
|
||||
mcjit
|
||||
)
|
||||
|
||||
add_llvm_example(Kaleidoscope-Ch4
|
||||
add_kaleidoscope_chapter(Kaleidoscope-Ch4
|
||||
toy.cpp
|
||||
)
|
||||
|
@ -10,6 +10,6 @@ set(LLVM_LINK_COMPONENTS
|
||||
mcjit
|
||||
)
|
||||
|
||||
add_llvm_example(Kaleidoscope-Ch5
|
||||
add_kaleidoscope_chapter(Kaleidoscope-Ch5
|
||||
toy.cpp
|
||||
)
|
||||
|
@ -10,6 +10,6 @@ set(LLVM_LINK_COMPONENTS
|
||||
mcjit
|
||||
)
|
||||
|
||||
add_llvm_example(Kaleidoscope-Ch6
|
||||
add_kaleidoscope_chapter(Kaleidoscope-Ch6
|
||||
toy.cpp
|
||||
)
|
||||
|
@ -13,6 +13,6 @@ set(LLVM_LINK_COMPONENTS
|
||||
|
||||
set(LLVM_REQUIRES_RTTI 1)
|
||||
|
||||
add_llvm_example(Kaleidoscope-Ch7
|
||||
add_kaleidoscope_chapter(Kaleidoscope-Ch7
|
||||
toy.cpp
|
||||
)
|
||||
|
@ -13,6 +13,6 @@ set(LLVM_LINK_COMPONENTS
|
||||
|
||||
set(LLVM_REQUIRES_RTTI 1)
|
||||
|
||||
add_llvm_example(Kaleidoscope-Ch8
|
||||
add_kaleidoscope_chapter(Kaleidoscope-Ch8
|
||||
toy.cpp
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user