CMakeLists.txt 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. set(SRCS
  2. renderer_opengl/generated/gl_3_2_core.c
  3. renderer_opengl/renderer_opengl.cpp
  4. renderer_opengl/gl_shader_util.cpp
  5. debug_utils/debug_utils.cpp
  6. clipper.cpp
  7. command_processor.cpp
  8. primitive_assembly.cpp
  9. rasterizer.cpp
  10. utils.cpp
  11. vertex_shader.cpp
  12. video_core.cpp
  13. )
  14. set(HEADERS
  15. debug_utils/debug_utils.h
  16. renderer_opengl/generated/gl_3_2_core.h
  17. renderer_opengl/gl_shader_util.h
  18. renderer_opengl/gl_shaders.h
  19. renderer_opengl/renderer_opengl.h
  20. clipper.h
  21. command_processor.h
  22. gpu_debugger.h
  23. math.h
  24. pica.h
  25. primitive_assembly.h
  26. rasterizer.h
  27. renderer_base.h
  28. utils.h
  29. vertex_shader.h
  30. video_core.h
  31. )
  32. create_directory_groups(${SRCS} ${HEADERS})
  33. add_library(video_core STATIC ${SRCS} ${HEADERS})
  34. if (PNG_FOUND)
  35. target_link_libraries(video_core ${PNG_LIBRARIES})
  36. include_directories(${PNG_INCLUDE_DIRS})
  37. add_definitions(${PNG_DEFINITIONS})
  38. endif()