CMakeLists.txt 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. set(INC
  2. ..
  3. ../../glew-mx
  4. )
  5. set(INC_SYS
  6. ${GLEW_INCLUDE_DIR}
  7. )
  8. set(SRC
  9. attribute.cpp
  10. background.cpp
  11. bake.cpp
  12. buffers.cpp
  13. camera.cpp
  14. colorspace.cpp
  15. constant_fold.cpp
  16. coverage.cpp
  17. denoising.cpp
  18. film.cpp
  19. graph.cpp
  20. image.cpp
  21. integrator.cpp
  22. light.cpp
  23. merge.cpp
  24. mesh.cpp
  25. mesh_displace.cpp
  26. mesh_subdivision.cpp
  27. mesh_volume.cpp
  28. nodes.cpp
  29. object.cpp
  30. osl.cpp
  31. particles.cpp
  32. curves.cpp
  33. scene.cpp
  34. session.cpp
  35. shader.cpp
  36. sobol.cpp
  37. stats.cpp
  38. svm.cpp
  39. tables.cpp
  40. tile.cpp
  41. )
  42. set(SRC_HEADERS
  43. attribute.h
  44. bake.h
  45. background.h
  46. buffers.h
  47. camera.h
  48. colorspace.h
  49. constant_fold.h
  50. coverage.h
  51. denoising.h
  52. film.h
  53. graph.h
  54. image.h
  55. integrator.h
  56. light.h
  57. merge.h
  58. mesh.h
  59. nodes.h
  60. object.h
  61. osl.h
  62. particles.h
  63. curves.h
  64. scene.h
  65. session.h
  66. shader.h
  67. sobol.h
  68. stats.h
  69. svm.h
  70. tables.h
  71. tile.h
  72. )
  73. set(LIB
  74. cycles_bvh
  75. )
  76. if(WITH_CYCLES_OSL)
  77. list(APPEND LIB
  78. cycles_kernel_osl
  79. )
  80. endif()
  81. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${RTTI_DISABLE_FLAGS}")
  82. include_directories(${INC})
  83. include_directories(SYSTEM ${INC_SYS})
  84. add_definitions(${GL_DEFINITIONS})
  85. cycles_add_library(cycles_render "${LIB}" ${SRC} ${SRC_HEADERS})