github的一些开源项目
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.

16 lines
556 B

  1. # Modified from FindReadline.cmake (PH Feb 2012)
  2. if(EDITLINE_INCLUDE_DIR AND EDITLINE_LIBRARY)
  3. set(EDITLINE_FOUND TRUE)
  4. else(EDITLINE_INCLUDE_DIR AND EDITLINE_LIBRARY)
  5. FIND_PATH(EDITLINE_INCLUDE_DIR readline.h PATH_SUFFIXES
  6. editline
  7. edit/readline
  8. )
  9. FIND_LIBRARY(EDITLINE_LIBRARY NAMES edit)
  10. include(FindPackageHandleStandardArgs)
  11. FIND_PACKAGE_HANDLE_STANDARD_ARGS(Editline DEFAULT_MSG EDITLINE_INCLUDE_DIR EDITLINE_LIBRARY)
  12. MARK_AS_ADVANCED(EDITLINE_INCLUDE_DIR EDITLINE_LIBRARY)
  13. endif(EDITLINE_INCLUDE_DIR AND EDITLINE_LIBRARY)