CMakeLists.txt 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Copyright 2019 Google
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. if(APPLE)
  15. # Environment and Logger subspecs
  16. file(
  17. GLOB sources
  18. Environment/*.m
  19. Environment/third_party/*.m
  20. Logger/*.m
  21. )
  22. file(
  23. GLOB headers
  24. Environment/Public/*.h
  25. Environment/third_party/*.h
  26. Logger/Private/*.h
  27. Logger/Public/*.h
  28. )
  29. podspec_version(version ${PROJECT_SOURCE_DIR}/GoogleUtilities.podspec)
  30. objc_framework(
  31. GoogleUtilities
  32. SOURCES ${sources}
  33. HEADERS ${headers}
  34. VERSION ${version}
  35. INCLUDES
  36. Private
  37. Public
  38. ${PROJECT_SOURCE_DIR}
  39. DEPENDS
  40. "-framework Foundation"
  41. EXCLUDE_FROM_ALL
  42. )
  43. target_compile_options(
  44. GoogleUtilities
  45. PRIVATE
  46. -Wno-deprecated-declarations
  47. )
  48. endif()