WtFindFirebirdSql.txt 910 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # FireBird also requires IBPP. This file searches for both.
  2. #
  3. # This file defines:
  4. # - FIREBIRD_LIBRARIES
  5. # - IBPP_ALL_IN_ONE_FILE
  6. # - FIREBIRD_INCLUDE_DIRS
  7. # - FIREBIRD_FOUND
  8. # Taking into account:
  9. # - FIREBIRD_PREFIX
  10. # - IBPP_SRC_DIRECTORY
  11. FIND_PATH(IBPP_INCLUDE ibpp.h
  12. ${IBPP_SRC_DIRECTORY}/core
  13. )
  14. FIND_FILE(IBPP_ALL_IN_ONE_FILE all_in_one.cpp
  15. ${IBPP_SRC_DIRECTORY}/core
  16. )
  17. IF(MSVC)
  18. SET(FBCLIENT fbclient_ms)
  19. ELSEIF(APPLE)
  20. SET(FBCLIENT Firebird)
  21. ELSEIF(UNIX)
  22. SET(FBCLIENT fbclient)
  23. ENDIF(MSVC)
  24. FIND_LIBRARY(FIREBIRD_LIBRARIES
  25. NAMES
  26. ${FBCLIENT}
  27. PATHS
  28. ${FIREBIRD_PREFIX}/lib
  29. /usr/lib
  30. /usr/lib64
  31. /usr/local/lib
  32. /opt/local/lib
  33. )
  34. SET(FIREBIRD_FOUND FALSE)
  35. IF(FIREBIRD_LIBRARIES AND IBPP_ALL_IN_ONE_FILE AND IBPP_INCLUDE)
  36. SET(FIREBIRD_FOUND TRUE)
  37. SET(FIREBIRD_INCLUDE_DIRS ${IBPP_INCLUDE})
  38. ENDIF(FIREBIRD_LIBRARIES AND IBPP_ALL_IN_ONE_FILE AND IBPP_INCLUDE)