You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.1 KiB

  1. ### XXX LICENSING: originally sourced from https://raw.githubusercontent.com/jobez/verdad/master/FindECL.cmake under MPL
  2. # Try to find Embeddable-Common Lisp
  3. #
  4. # ECL_FOUND - System has ECL
  5. # ECL_INCLUDE_DIRS - The ECL include directories
  6. # ECL_LIBRARIES - The libraries needed to use ECL
  7. # ECL_DEFINITIONS - Compiler switches required for using ECL
  8. set(ECL_DEFINITIONS ${PC_LIBXML_CFLAGS_OTHER})
  9. find_path(ECL_INCLUDE_DIR ecl/ecl.h
  10. HINTS ${PC_LIBXML_INCLUDEDIR} ${PC_LIBXML_INCLUDE_DIRS}
  11. PATH_SUFFIXES libecl )
  12. find_library(ECL_LIBRARY NAMES ecl
  13. HINTS ${PC_ECL_LIBDIR} ${PC_ECL_LIBRARY_DIRS} )
  14. include(FindPackageHandleStandardArgs)
  15. # handle the QUIETLY and REQUIRED arguments and set ECL_FOUND to TRUE
  16. # if all listed variables are TRUE
  17. find_package_handle_standard_args(ECL DEFAULT_MSG
  18. ECL_LIBRARY ECL_INCLUDE_DIR)
  19. mark_as_advanced(ECL_INCLUDE_DIR ECL_LIBRARY )
  20. set(ECL_LIBRARIES ${ECL_LIBRARY} )
  21. set(ECL_INCLUDE_DIRS ${ECL_INCLUDE_DIR} )
  22. ### additions to the above
  23. find_program(ECL_PROGRAM NAMES ecl REQUIRED)