CMakeLists.txt 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. set(INC
  2. ..
  3. ../../glew-mx
  4. )
  5. set(INC_SYS
  6. ${GLEW_INCLUDE_DIR}
  7. )
  8. set(SRC
  9. util_aligned_malloc.cpp
  10. util_debug.cpp
  11. util_ies.cpp
  12. util_logging.cpp
  13. util_math_cdf.cpp
  14. util_md5.cpp
  15. util_murmurhash.cpp
  16. util_path.cpp
  17. util_profiling.cpp
  18. util_string.cpp
  19. util_simd.cpp
  20. util_system.cpp
  21. util_task.cpp
  22. util_thread.cpp
  23. util_time.cpp
  24. util_transform.cpp
  25. util_windows.cpp
  26. )
  27. set(LIB
  28. )
  29. if(WITH_CYCLES_STANDALONE)
  30. if(WITH_CYCLES_STANDALONE_GUI)
  31. list(APPEND SRC
  32. util_view.cpp
  33. )
  34. endif()
  35. endif()
  36. if(CYCLES_STANDALONE_REPOSITORY)
  37. list(APPEND INC_SYS ../../third_party/numaapi/include)
  38. else()
  39. list(APPEND INC_SYS ../../numaapi/include)
  40. endif()
  41. set(SRC_HEADERS
  42. util_algorithm.h
  43. util_aligned_malloc.h
  44. util_args.h
  45. util_array.h
  46. util_atomic.h
  47. util_boundbox.h
  48. util_debug.h
  49. util_defines.h
  50. util_guarded_allocator.cpp
  51. util_foreach.h
  52. util_function.h
  53. util_guarded_allocator.h
  54. util_half.h
  55. util_hash.h
  56. util_ies.h
  57. util_image.h
  58. util_image_impl.h
  59. util_list.h
  60. util_logging.h
  61. util_map.h
  62. util_math.h
  63. util_math_cdf.h
  64. util_math_fast.h
  65. util_math_intersect.h
  66. util_math_float2.h
  67. util_math_float3.h
  68. util_math_float4.h
  69. util_math_int2.h
  70. util_math_int3.h
  71. util_math_int4.h
  72. util_math_matrix.h
  73. util_md5.h
  74. util_murmurhash.h
  75. util_opengl.h
  76. util_optimization.h
  77. util_param.h
  78. util_path.h
  79. util_profiling.h
  80. util_progress.h
  81. util_projection.h
  82. util_queue.h
  83. util_rect.h
  84. util_set.h
  85. util_simd.h
  86. util_sky_model.cpp
  87. util_sky_model.h
  88. util_sky_model_data.h
  89. util_avxf.h
  90. util_avxb.h
  91. util_sseb.h
  92. util_ssef.h
  93. util_ssei.h
  94. util_stack_allocator.h
  95. util_static_assert.h
  96. util_stats.h
  97. util_string.h
  98. util_system.h
  99. util_task.h
  100. util_texture.h
  101. util_thread.h
  102. util_time.h
  103. util_transform.h
  104. util_types.h
  105. util_types_float2.h
  106. util_types_float2_impl.h
  107. util_types_float3.h
  108. util_types_float3_impl.h
  109. util_types_float4.h
  110. util_types_float4_impl.h
  111. util_types_float8.h
  112. util_types_float8_impl.h
  113. util_types_int2.h
  114. util_types_int2_impl.h
  115. util_types_int3.h
  116. util_types_int3_impl.h
  117. util_types_int4.h
  118. util_types_int4_impl.h
  119. util_types_uchar2.h
  120. util_types_uchar2_impl.h
  121. util_types_uchar3.h
  122. util_types_uchar3_impl.h
  123. util_types_uchar4.h
  124. util_types_uchar4_impl.h
  125. util_types_uint2.h
  126. util_types_uint2_impl.h
  127. util_types_uint3.h
  128. util_types_uint3_impl.h
  129. util_types_uint4.h
  130. util_types_uint4_impl.h
  131. util_types_ushort4.h
  132. util_types_vector3.h
  133. util_types_vector3_impl.h
  134. util_vector.h
  135. util_version.h
  136. util_view.h
  137. util_windows.h
  138. util_xml.h
  139. )
  140. include_directories(${INC})
  141. include_directories(SYSTEM ${INC_SYS})
  142. add_definitions(${GL_DEFINITIONS})
  143. cycles_add_library(cycles_util "${LIB}" ${SRC} ${SRC_HEADERS})