39df555d5e294c38afca882c20a4d6f042854790
[oota-llvm.git] / lib / ExecutionEngine / Interpreter / CMakeLists.txt
1 # If the user required a custom path for ffi headers, use it on its
2 # abolute form (see config-ix.cmake):
3 if( FFI_INCLUDE_DIR )
4   include_directories( ${FFI_INCLUDE_PATH} )
5 endif()
6
7 # If the user required a custom path for libffi, use it on its abolute
8 # form (see config-ix.cmake):
9 if( FFI_LIBRARY_DIR )
10   link_directories( ${FFI_LIBRARY_PATH} )
11 endif()
12
13 add_llvm_library(LLVMInterpreter
14   Execution.cpp
15   ExternalFunctions.cpp
16   Interpreter.cpp
17   )
18
19 if( LLVM_ENABLE_FFI )
20   target_link_libraries( LLVMInterpreter ffi )
21 endif()