CMakeLists.txt 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. set(SRCS
  2. renderer_opengl/gl_rasterizer.cpp
  3. renderer_opengl/gl_rasterizer_cache.cpp
  4. renderer_opengl/gl_shader_util.cpp
  5. renderer_opengl/gl_state.cpp
  6. renderer_opengl/renderer_opengl.cpp
  7. debug_utils/debug_utils.cpp
  8. clipper.cpp
  9. command_processor.cpp
  10. pica.cpp
  11. primitive_assembly.cpp
  12. rasterizer.cpp
  13. shader/shader.cpp
  14. shader/shader_interpreter.cpp
  15. utils.cpp
  16. video_core.cpp
  17. )
  18. set(HEADERS
  19. debug_utils/debug_utils.h
  20. renderer_opengl/gl_rasterizer.h
  21. renderer_opengl/gl_rasterizer_cache.h
  22. renderer_opengl/gl_resource_manager.h
  23. renderer_opengl/gl_shader_util.h
  24. renderer_opengl/gl_shaders.h
  25. renderer_opengl/gl_state.h
  26. renderer_opengl/pica_to_gl.h
  27. renderer_opengl/renderer_opengl.h
  28. clipper.h
  29. command_processor.h
  30. gpu_debugger.h
  31. hwrasterizer_base.h
  32. pica.h
  33. primitive_assembly.h
  34. rasterizer.h
  35. renderer_base.h
  36. shader/shader.h
  37. shader/shader_interpreter.h
  38. utils.h
  39. video_core.h
  40. )
  41. if(ARCHITECTURE_x86_64)
  42. set(SRCS ${SRCS}
  43. shader/shader_jit_x64.cpp)
  44. set(HEADERS ${HEADERS}
  45. shader/shader_jit_x64.h)
  46. endif()
  47. create_directory_groups(${SRCS} ${HEADERS})
  48. add_library(video_core STATIC ${SRCS} ${HEADERS})
  49. target_link_libraries(video_core glad)
  50. if (PNG_FOUND)
  51. target_link_libraries(video_core ${PNG_LIBRARIES})
  52. include_directories(${PNG_INCLUDE_DIRS})
  53. add_definitions(${PNG_DEFINITIONS})
  54. endif()