llvm.org GIT mirror llvm / dbc2e85
CMake: Builds all examples. Corrected name of CBackend target. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56682 91177308-0d34-0410-b5e6-96231b3b80d8 Oscar Fuentes 10 years ago
6 changed file(s) with 35 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
0 set(LLVM_LINK_COMPONENTS jit bitwriter nativecodegen interpreter)
1
2 add_llvm_example(BrainF
3 BrainF.cpp
4 BrainFDriver.cpp
5 )
None add_subdirectory(Fibonacci)
0 add_subdirectory(BrainF)
1 add_subdirectory(Fibonacci)
2 add_subdirectory(HowToUseJIT)
3 add_subdirectory(ModuleMaker)
4
5 include(CheckIncludeFile)
6 check_include_file(pthread.h HAVE_PTHREAD_H)
7
8 if( HAVE_PTHREAD_H )
9 add_subdirectory(ParallelJIT)
10 endif( HAVE_PTHREAD_H )
0 set(LLVM_LINK_COMPONENTS jit interpreter nativecodegen)
1
2 add_llvm_executable(HowToUseJIT
3 HowToUseJIT.cpp
4 )
0 set(LLVM_LINK_COMPONENTS bitwriter)
1
2 add_llvm_example(ModuleMaker
3 ModuleMaker.cpp
4 )
0 set(LLVM_LINK_COMPONENTS jit interpreter nativecodegen)
1
2 add_llvm_example(ParallelJIT
3 ParallelJIT.cpp
4 )
5
6 target_link_libraries(ParallelJIT pthread)
None add_llvm_target(CBackEnd
0 add_llvm_target(CBackend
11 CBackend.cpp
22 )