CMakeLists.txt 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. add_library(document SHARED)
  2. set(BUILD_NODES ON CACHE BOOL "Whether to build actual nodes (useful to turn off to just run basic tests)")
  3. target_sources(document
  4. PRIVATE
  5. context.cpp
  6. document.cpp
  7. instance.cpp
  8. color.cpp
  9. node/abstract_node.cpp
  10. )
  11. if (BUILD_NODES)
  12. target_sources(document
  13. PRIVATE
  14. nodes/animated.cpp
  15. nodes/frame_list.cpp
  16. nodes/time.cpp
  17. nodes/time_list.cpp
  18. nodes/time_period.cpp
  19. nodes/dynamic_node.cpp
  20. nodes/morph.cpp
  21. nodes/format_string.cpp
  22. nodes/format_number.cpp
  23. nodes/color_mix.cpp
  24. nodes/follow_path.cpp
  25. nodes/path_xy.cpp
  26. nodes/extract_coord.cpp
  27. nodes/point_xy.cpp
  28. nodes/knot.cpp
  29. nodes/knot_list.cpp
  30. nodes/linear.cpp
  31. nodes/truncate.cpp
  32. nodes/to_string.cpp
  33. nodes/color_string.cpp
  34. nodes/file_string.cpp
  35. nodes/math.cpp
  36. nodes/rectangle.cpp
  37. nodes/circle.cpp
  38. nodes/list.cpp
  39. nodes/split_string.cpp
  40. nodes/random.cpp
  41. nodes/renderable/empty.cpp
  42. nodes/renderable/composite.cpp
  43. nodes/renderable/image.cpp
  44. nodes/renderable/translate.cpp
  45. nodes/renderable/scale.cpp
  46. nodes/renderable/rotate.cpp
  47. nodes/renderable/text.cpp
  48. nodes/renderable/render_shape.cpp
  49. )
  50. endif()
  51. target_link_libraries(document log morphing fmt)
  52. install(
  53. TARGETS document
  54. EXPORT rainynite_core
  55. LIBRARY DESTINATION lib
  56. ARCHIVE DESTINATION lib
  57. )