Oscar Fuentes | 6495595 | 2011-01-21 15:42:54 +0000 | [diff] [blame^] | 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 | |
Douglas Gregor | 85fedbe | 2009-06-23 17:57:35 +0000 | [diff] [blame] | 13 | add_llvm_library(LLVMInterpreter |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 14 | Execution.cpp |
| 15 | ExternalFunctions.cpp |
| 16 | Interpreter.cpp |
| 17 | ) |
Oscar Fuentes | 6495595 | 2011-01-21 15:42:54 +0000 | [diff] [blame^] | 18 | |
| 19 | if( LLVM_ENABLE_FFI ) |
| 20 | target_link_libraries( LLVMInterpreter ffi ) |
| 21 | endif() |