CMakeLists.txt 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # ***** BEGIN GPL LICENSE BLOCK *****
  2. #
  3. # This program is free software; you can redistribute it and/or
  4. # modify it under the terms of the GNU General Public License
  5. # as published by the Free Software Foundation; either version 2
  6. # of the License, or (at your option) any later version.
  7. #
  8. # This program is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. # GNU General Public License for more details.
  12. #
  13. # You should have received a copy of the GNU General Public License
  14. # along with this program; if not, write to the Free Software Foundation,
  15. # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16. #
  17. # The Original Code is Copyright (C) 2014, Blender Foundation
  18. # All rights reserved.
  19. # ***** END GPL LICENSE BLOCK *****
  20. # avoid noisy warnings
  21. if(CMAKE_COMPILER_IS_GNUCC)
  22. remove_cc_flag(
  23. "-Wmissing-declarations"
  24. )
  25. endif()
  26. set(INC
  27. .
  28. include
  29. )
  30. set(INC_SYS
  31. )
  32. set(SRC
  33. src/gtest.cc
  34. src/gtest-death-test.cc
  35. src/gtest-filepath.cc
  36. src/gtest-port.cc
  37. src/gtest-printers.cc
  38. src/gtest-test-part.cc
  39. src/gtest-typed-test.cc
  40. src/gtest-internal-inl.h
  41. include/gtest/gtest-death-test.h
  42. include/gtest/gtest.h
  43. include/gtest/gtest-message.h
  44. include/gtest/gtest-param-test.h
  45. include/gtest/gtest_pred_impl.h
  46. include/gtest/gtest-printers.h
  47. include/gtest/gtest_prod.h
  48. include/gtest/gtest-spi.h
  49. include/gtest/gtest-test-part.h
  50. include/gtest/gtest-typed-test.h
  51. include/gtest/internal/gtest-death-test-internal.h
  52. include/gtest/internal/gtest-filepath.h
  53. include/gtest/internal/gtest-internal.h
  54. include/gtest/internal/gtest-linked_ptr.h
  55. include/gtest/internal/gtest-param-util-generated.h
  56. include/gtest/internal/gtest-param-util.h
  57. include/gtest/internal/gtest-port.h
  58. include/gtest/internal/gtest-string.h
  59. include/gtest/internal/gtest-tuple.h
  60. include/gtest/internal/gtest-type-util.h
  61. )
  62. set(LIB
  63. )
  64. blender_add_lib(extern_gtest "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")