CMakeLists.txt 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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. #
  20. # The Original Code is: all of this file.
  21. #
  22. # Contributor(s): Jacques Beaurain.
  23. #
  24. # ***** END GPL LICENSE BLOCK *****
  25. # Libs that adhere to strict flags
  26. add_subdirectory(curve_fit_nd)
  27. # Otherwise we get warnings here that we cant fix in external projects
  28. remove_strict_flags()
  29. # Not a strict flag, but noisy for code we don't maintain
  30. if(CMAKE_COMPILER_IS_GNUCC)
  31. remove_cc_flag(
  32. "-Wmisleading-indentation"
  33. )
  34. endif()
  35. add_subdirectory(rangetree)
  36. add_subdirectory(wcwidth)
  37. if(WITH_BULLET)
  38. if(NOT WITH_SYSTEM_BULLET)
  39. add_subdirectory(bullet2)
  40. endif()
  41. endif()
  42. # now only available in a branch
  43. #if(WITH_MOD_CLOTH_ELTOPO)
  44. # add_subdirectory(eltopo)
  45. #endif()
  46. if(WITH_BINRELOC)
  47. add_subdirectory(binreloc)
  48. endif()
  49. if(NOT WITH_SYSTEM_GLEW)
  50. if(WITH_GLEW_ES)
  51. add_subdirectory(glew-es)
  52. else()
  53. add_subdirectory(glew)
  54. endif()
  55. endif()
  56. if(WITH_GAMEENGINE)
  57. add_subdirectory(recastnavigation)
  58. endif()
  59. if(WITH_IMAGE_OPENJPEG AND (NOT WITH_SYSTEM_OPENJPEG))
  60. add_subdirectory(libopenjpeg)
  61. endif()
  62. if(WITH_LZO AND NOT WITH_SYSTEM_LZO)
  63. add_subdirectory(lzo)
  64. endif()
  65. if(WITH_LZMA)
  66. add_subdirectory(lzma)
  67. endif()
  68. if(WITH_CYCLES OR WITH_COMPOSITOR OR WITH_OPENSUBDIV)
  69. add_subdirectory(clew)
  70. if(WITH_CUDA_DYNLOAD)
  71. add_subdirectory(cuew)
  72. endif()
  73. endif()
  74. if(WITH_MOD_BOOLEAN)
  75. add_subdirectory(carve)
  76. endif()
  77. if(WITH_X11 AND WITH_GHOST_XDND)
  78. add_subdirectory(xdnd)
  79. endif()
  80. if(WITH_LIBMV)
  81. add_subdirectory(ceres)
  82. endif()
  83. if(WITH_LIBMV OR WITH_GTESTS OR (WITH_CYCLES AND WITH_CYCLES_LOGGING))
  84. if (NOT WITH_SYSTEM_GFLAGS)
  85. add_subdirectory(gflags)
  86. endif()
  87. add_subdirectory(glog)
  88. endif()
  89. if(WITH_GTESTS)
  90. add_subdirectory(gtest)
  91. add_subdirectory(gmock)
  92. endif()
  93. if(WITH_SDL AND WITH_SDL_DYNLOAD)
  94. add_subdirectory(sdlew)
  95. endif()