2011-01-28 06:58:34 +08:00
|
|
|
# Make sure that the path to libffi headers is on the command
|
|
|
|
# line. That path can be a compiler's non-default path even when
|
|
|
|
# FFI_INCLUDE_DIR was not used, because cmake has its own paths for
|
|
|
|
# searching for headers (CMAKE_SYSTEM_INCLUDE_PATH, for instance):
|
|
|
|
if( FFI_INCLUDE_PATH )
|
2011-01-21 23:42:54 +08:00
|
|
|
include_directories( ${FFI_INCLUDE_PATH} )
|
|
|
|
endif()
|
|
|
|
|
2009-06-24 01:57:35 +08:00
|
|
|
add_llvm_library(LLVMInterpreter
|
2008-09-22 09:08:49 +08:00
|
|
|
Execution.cpp
|
|
|
|
ExternalFunctions.cpp
|
|
|
|
Interpreter.cpp
|
|
|
|
)
|
2011-01-21 23:42:54 +08:00
|
|
|
|
|
|
|
if( LLVM_ENABLE_FFI )
|
2011-01-29 00:49:05 +08:00
|
|
|
target_link_libraries( LLVMInterpreter ${FFI_LIBRARY_PATH} )
|
2011-01-21 23:42:54 +08:00
|
|
|
endif()
|