1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 10:32:48 +02:00

CMake: Builds all examples. Corrected name of CBackend target.

llvm-svn: 56682
This commit is contained in:
Oscar Fuentes 2008-09-26 19:48:03 +00:00
parent 9ce0f3e4b3
commit 94d058ba4a
6 changed files with 35 additions and 2 deletions

View File

@ -0,0 +1,6 @@
set(LLVM_LINK_COMPONENTS jit bitwriter nativecodegen interpreter)
add_llvm_example(BrainF
BrainF.cpp
BrainFDriver.cpp
)

View File

@ -1 +1,11 @@
add_subdirectory(Fibonacci)
add_subdirectory(BrainF)
add_subdirectory(Fibonacci)
add_subdirectory(HowToUseJIT)
add_subdirectory(ModuleMaker)
include(CheckIncludeFile)
check_include_file(pthread.h HAVE_PTHREAD_H)
if( HAVE_PTHREAD_H )
add_subdirectory(ParallelJIT)
endif( HAVE_PTHREAD_H )

View File

@ -0,0 +1,5 @@
set(LLVM_LINK_COMPONENTS jit interpreter nativecodegen)
add_llvm_executable(HowToUseJIT
HowToUseJIT.cpp
)

View File

@ -0,0 +1,5 @@
set(LLVM_LINK_COMPONENTS bitwriter)
add_llvm_example(ModuleMaker
ModuleMaker.cpp
)

View File

@ -0,0 +1,7 @@
set(LLVM_LINK_COMPONENTS jit interpreter nativecodegen)
add_llvm_example(ParallelJIT
ParallelJIT.cpp
)
target_link_libraries(ParallelJIT pthread)

View File

@ -1,3 +1,3 @@
add_llvm_target(CBackEnd
add_llvm_target(CBackend
CBackend.cpp
)