simple shader program for testing purposes
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.

42 lines
743B

  1. SET(SDL2_SEARCH_PATHS
  2. ~/Library/Frameworks
  3. /Library/Frameworks
  4. /usr/local
  5. /usr
  6. /sw
  7. /opt/local
  8. /opt/csw
  9. /opt
  10. )
  11. FIND_PATH(SDL2_INCLUDE_DIRS SDL.h
  12. HINTS
  13. $ENV{SDL2DIR}
  14. PATH_SUFFIXES include/SDL2 include
  15. PATHS ${SDL2_SEARCH_PATHS}
  16. )
  17. FIND_LIBRARY(SDL2_LIBRARIES
  18. NAMES SDL2
  19. HINTS
  20. $ENV{SDL2DIR}
  21. PATH_SUFFIXES lib64 lib
  22. PATHS ${SDL2_SEARCH_PATHS}
  23. )
  24. FIND_LIBRARY(SDL2_MAIN_LIBRARIES
  25. NAMES SDL2main
  26. HINTS
  27. $ENV{SDL2DIR}
  28. PATH_SUFFIXES lib64 lib
  29. PATHS ${SDL2_SEARCH_PATHS}
  30. )
  31. INCLUDE(FindPackageHandleStandardArgs)
  32. FIND_PACKAGE_HANDLE_STANDARD_ARGS(SDL2 REQUIRED_VARS SDL2_LIBRARIES SDL2_INCLUDE_DIRS)
  33. SET(SDL2_FOUND "NO")
  34. IF(SDL2_LIBRARIES AND SDL2_INCLUDE_DIRS)
  35. SET(SDL2_FOUND "YES")
  36. ENDIF(SDL2_LIBRARIES AND SDL2_INCLUDE_DIRS)