cmake: Add Kaleidoscope target

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225318 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith 2015-01-06 23:39:37 +00:00
parent 2848d92620
commit c182476974
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
)