Collection of DPF-based plugins for packaging
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.

21 lines
537B

  1. # The GLM library is header-only, so we only need to find the glm/glm.hpp header.
  2. find_path(GLM_INCLUDE_DIR
  3. glm/glm.hpp
  4. )
  5. find_file(GLM_INCLUDE_FILE
  6. glm/glm.hpp
  7. )
  8. include(FindPackageHandleStandardArgs)
  9. find_package_handle_standard_args(GLM DEFAULT_MSG GLM_INCLUDE_FILE GLM_INCLUDE_DIR)
  10. if(GLM_FOUND AND NOT TARGET GLM::GLM)
  11. add_library(GLM::GLM INTERFACE IMPORTED)
  12. set_target_properties(GLM::GLM PROPERTIES
  13. INTERFACE_INCLUDE_DIRECTORIES "${GLM_INCLUDE_DIR}"
  14. )
  15. endif()