CMakeLists.txt 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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) 2006, Blender Foundation
  18. # All rights reserved.
  19. # ***** END GPL LICENSE BLOCK *****
  20. # Libs that adhere to strict flags
  21. add_subdirectory(curve_fit_nd)
  22. # Otherwise we get warnings here that we cant fix in external projects
  23. remove_strict_flags()
  24. # Not a strict flag, but noisy for code we don't maintain
  25. if(CMAKE_COMPILER_IS_GNUCC)
  26. remove_cc_flag(
  27. "-Wmisleading-indentation"
  28. )
  29. endif()
  30. add_subdirectory(rangetree)
  31. add_subdirectory(wcwidth)
  32. if(WITH_BULLET)
  33. if(NOT WITH_SYSTEM_BULLET)
  34. add_subdirectory(bullet2)
  35. endif()
  36. endif()
  37. if(WITH_DRACO)
  38. add_subdirectory(draco)
  39. endif()
  40. # now only available in a branch
  41. #if(WITH_MOD_CLOTH_ELTOPO)
  42. # add_subdirectory(eltopo)
  43. #endif()
  44. if(WITH_BINRELOC)
  45. add_subdirectory(binreloc)
  46. endif()
  47. if(NOT WITH_SYSTEM_GLEW)
  48. if(WITH_GLEW_ES)
  49. add_subdirectory(glew-es)
  50. else()
  51. add_subdirectory(glew)
  52. endif()
  53. endif()
  54. if(WITH_LZO AND NOT WITH_SYSTEM_LZO)
  55. add_subdirectory(lzo)
  56. endif()
  57. if(WITH_LZMA)
  58. add_subdirectory(lzma)
  59. endif()
  60. if(WITH_CYCLES OR WITH_COMPOSITOR OR WITH_OPENSUBDIV)
  61. add_subdirectory(clew)
  62. if(WITH_CUDA_DYNLOAD)
  63. add_subdirectory(cuew)
  64. endif()
  65. endif()
  66. if(WITH_X11 AND WITH_GHOST_XDND)
  67. add_subdirectory(xdnd)
  68. endif()
  69. if(WITH_LIBMV)
  70. add_subdirectory(ceres)
  71. endif()
  72. if(WITH_LIBMV OR WITH_GTESTS OR (WITH_CYCLES AND WITH_CYCLES_LOGGING))
  73. if(NOT WITH_SYSTEM_GFLAGS)
  74. add_subdirectory(gflags)
  75. endif()
  76. add_subdirectory(glog)
  77. endif()
  78. if(WITH_GTESTS)
  79. add_subdirectory(gtest)
  80. add_subdirectory(gmock)
  81. endif()
  82. if(WITH_SDL AND WITH_SDL_DYNLOAD)
  83. add_subdirectory(sdlew)
  84. endif()
  85. if(WITH_AUDASPACE AND NOT WITH_SYSTEM_AUDASPACE)
  86. set(AUDASPACE_CMAKE_CFG ${CMAKE_CURRENT_SOURCE_DIR}/audaspace/blender_config.cmake)
  87. add_subdirectory(audaspace)
  88. endif()