CMakeLists.txt 586 B

12345678910111213141516171819
  1. # Make sure that the path to libffi headers is on the command
  2. # line. That path can be a compiler's non-default path even when
  3. # FFI_INCLUDE_DIR was not used, because cmake has its own paths for
  4. # searching for headers (CMAKE_SYSTEM_INCLUDE_PATH, for instance):
  5. if( FFI_INCLUDE_PATH )
  6. include_directories( ${FFI_INCLUDE_PATH} )
  7. endif()
  8. add_llvm_library(LLVMInterpreter
  9. Execution.cpp
  10. ExternalFunctions.cpp
  11. Interpreter.cpp
  12. )
  13. if( LLVM_ENABLE_FFI )
  14. target_link_libraries( LLVMInterpreter PRIVATE ${FFI_LIBRARY_PATH} )
  15. endif()
  16. add_dependencies(LLVMInterpreter intrinsics_gen)