1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

cmake: Add Kaleidoscope target

llvm-svn: 225318
This commit is contained in:
Duncan P. N. Exon Smith 2015-01-06 23:39:37 +00:00
parent 7beeede5da
commit 8726c80a5f
8 changed files with 14 additions and 7 deletions

View File

@ -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)

View File

@ -1,3 +1,3 @@
add_llvm_example(Kaleidoscope-Ch2
add_kaleidoscope_chapter(Kaleidoscope-Ch2
toy.cpp
)

View File

@ -3,6 +3,6 @@ set(LLVM_LINK_COMPONENTS
Support
)
add_llvm_example(Kaleidoscope-Ch3
add_kaleidoscope_chapter(Kaleidoscope-Ch3
toy.cpp
)

View File

@ -10,6 +10,6 @@ set(LLVM_LINK_COMPONENTS
mcjit
)
add_llvm_example(Kaleidoscope-Ch4
add_kaleidoscope_chapter(Kaleidoscope-Ch4
toy.cpp
)

View File

@ -10,6 +10,6 @@ set(LLVM_LINK_COMPONENTS
mcjit
)
add_llvm_example(Kaleidoscope-Ch5
add_kaleidoscope_chapter(Kaleidoscope-Ch5
toy.cpp
)

View File

@ -10,6 +10,6 @@ set(LLVM_LINK_COMPONENTS
mcjit
)
add_llvm_example(Kaleidoscope-Ch6
add_kaleidoscope_chapter(Kaleidoscope-Ch6
toy.cpp
)

View File

@ -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
)

View File

@ -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
)