CMakeLists.txt 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. set(INC
  21. intern
  22. ../memutil
  23. )
  24. set(INC_SYS
  25. ${BULLET_INCLUDE_DIRS}
  26. ${PNG_INCLUDE_DIRS}
  27. ${ZLIB_INCLUDE_DIRS}
  28. )
  29. set(SRC
  30. intern/EIGENVALUE_HELPER.cpp
  31. intern/FLUID_3D.cpp
  32. intern/FLUID_3D_SOLVERS.cpp
  33. intern/FLUID_3D_STATIC.cpp
  34. intern/LU_HELPER.cpp
  35. intern/SPHERE.cpp
  36. intern/WTURBULENCE.cpp
  37. intern/smoke_API.cpp
  38. extern/smoke_API.h
  39. intern/EIGENVALUE_HELPER.h
  40. intern/FFT_NOISE.h
  41. intern/FLUID_3D.h
  42. intern/IMAGE.h
  43. intern/INTERPOLATE.h
  44. intern/LU_HELPER.h
  45. intern/MERSENNETWISTER.h
  46. intern/OBSTACLE.h
  47. intern/SPHERE.h
  48. intern/VEC3.h
  49. intern/WAVELET_NOISE.h
  50. intern/WTURBULENCE.h
  51. intern/tnt/jama_eig.h
  52. intern/tnt/jama_lu.h
  53. intern/tnt/tnt.h
  54. intern/tnt/tnt_array1d.h
  55. intern/tnt/tnt_array1d_utils.h
  56. intern/tnt/tnt_array2d.h
  57. intern/tnt/tnt_array2d_utils.h
  58. intern/tnt/tnt_array3d.h
  59. intern/tnt/tnt_array3d_utils.h
  60. intern/tnt/tnt_cmat.h
  61. intern/tnt/tnt_fortran_array1d.h
  62. intern/tnt/tnt_fortran_array1d_utils.h
  63. intern/tnt/tnt_fortran_array2d.h
  64. intern/tnt/tnt_fortran_array2d_utils.h
  65. intern/tnt/tnt_fortran_array3d.h
  66. intern/tnt/tnt_fortran_array3d_utils.h
  67. intern/tnt/tnt_i_refvec.h
  68. intern/tnt/tnt_math_utils.h
  69. intern/tnt/tnt_sparse_matrix_csr.h
  70. intern/tnt/tnt_stopwatch.h
  71. intern/tnt/tnt_subscript.h
  72. intern/tnt/tnt_vec.h
  73. intern/tnt/tnt_version.h
  74. )
  75. set(LIB
  76. )
  77. # quiet -Wundef
  78. add_definitions(-DDDF_DEBUG=0)
  79. if(WITH_OPENMP)
  80. add_definitions(-DPARALLEL=1)
  81. else()
  82. add_definitions(-DPARALLEL=0)
  83. endif()
  84. if(WITH_FFTW3)
  85. add_definitions(-DWITH_FFTW3)
  86. list(APPEND INC_SYS
  87. ${FFTW3_INCLUDE_DIRS}
  88. )
  89. endif()
  90. blender_add_lib(bf_intern_smoke "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")