re2Config.cmake.in 531 B

1234567891011121314151617181920212223242526
  1. # Copyright 2022 The RE2 Authors. All Rights Reserved.
  2. # Use of this source code is governed by a BSD-style
  3. # license that can be found in the LICENSE file.
  4. @PACKAGE_INIT@
  5. include(CMakeFindDependencyMacro)
  6. if(UNIX)
  7. set(THREADS_PREFER_PTHREAD_FLAG ON)
  8. find_dependency(Threads REQUIRED)
  9. endif()
  10. find_dependency(absl REQUIRED)
  11. if(@RE2_USE_ICU@)
  12. find_dependency(ICU REQUIRED COMPONENTS uc)
  13. endif()
  14. check_required_components(re2)
  15. if(TARGET re2::re2)
  16. return()
  17. endif()
  18. include(${CMAKE_CURRENT_LIST_DIR}/re2Targets.cmake)