CMakeLists.txt 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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) 2016, Blender Foundation
  18. # All rights reserved.
  19. #
  20. # Contributor(s): Blender Foundation,
  21. # Sergey Sharybin
  22. #
  23. # ***** END GPL LICENSE BLOCK *****
  24. set(INC
  25. src
  26. ../gflags/src
  27. )
  28. set(INC_SYS
  29. )
  30. set(SRC
  31. src/logging.cc
  32. src/raw_logging.cc
  33. src/utilities.cc
  34. src/vlog_is_on.cc
  35. src/utilities.h
  36. src/config.h
  37. src/config_freebsd.h
  38. src/config_hurd.h
  39. src/config_linux.h
  40. src/config_mac.h
  41. src/base/commandlineflags.h
  42. src/base/googleinit.h
  43. src/base/mutex.h
  44. src/stacktrace.h
  45. src/stacktrace_generic-inl.h
  46. src/stacktrace_libunwind-inl.h
  47. src/stacktrace_powerpc-inl.h
  48. src/stacktrace_x86_64-inl.h
  49. src/stacktrace_x86-inl.h
  50. )
  51. if(WIN32)
  52. list(APPEND SRC
  53. src/windows/port.cc
  54. src/windows/glog/raw_logging.h
  55. src/windows/glog/vlog_is_on.h
  56. src/windows/glog/logging.h
  57. src/windows/glog/log_severity.h
  58. src/windows/port.h
  59. src/windows/config.h
  60. )
  61. list(APPEND INC
  62. src/windows
  63. )
  64. else()
  65. list(APPEND SRC
  66. src/demangle.cc
  67. src/signalhandler.cc
  68. src/symbolize.cc
  69. src/demangle.h
  70. src/glog/logging.h
  71. src/glog/log_severity.h
  72. src/glog/raw_logging.h
  73. src/glog/vlog_is_on.h
  74. src/symbolize.h
  75. )
  76. endif()
  77. add_definitions(${GFLAGS_DEFINES})
  78. add_definitions(${GLOG_DEFINES})
  79. blender_add_lib(extern_glog "${SRC}" "${INC}" "${INC_SYS}")