FindLuajit.cmake 468 B

123456789101112131415161718
  1. find_path2(LUAJIT_INCLUDE_DIR luajit.h
  2. PATH_SUFFIXES luajit-2.1)
  3. if(MSVC)
  4. list(APPEND LUAJIT_NAMES lua51)
  5. elseif(MINGW)
  6. list(APPEND LUAJIT_NAMES libluajit libluajit-5.1)
  7. else()
  8. list(APPEND LUAJIT_NAMES luajit-5.1)
  9. endif()
  10. find_library2(LUAJIT_LIBRARY NAMES ${LUAJIT_NAMES})
  11. find_package_handle_standard_args(Luajit DEFAULT_MSG
  12. LUAJIT_LIBRARY LUAJIT_INCLUDE_DIR)
  13. mark_as_advanced(LUAJIT_INCLUDE_DIR LUAJIT_LIBRARY)