Skip to content
This repository has been archived by the owner on Aug 17, 2024. It is now read-only.

CMakeLists.txt submission #2

Open
ar-visions opened this issue Mar 3, 2023 · 0 comments
Open

CMakeLists.txt submission #2

ar-visions opened this issue Mar 3, 2023 · 0 comments

Comments

@ar-visions
Copy link

ar-visions commented Mar 3, 2023

Thank you for representing the amazing line sweep algorithm. I used to use poly2tri and my own feathering vertex shader on strokes.. then made a bad move to skia, and now I'm back with vkvg and this really nice method to fill arb shapes.

cmake_minimum_required(VERSION 3.5)
project(glutess)

set(SOURCES
  dict.c
  geom.c
  main.c
  memalloc.c
  mesh.c
  normal.c
  priorityq-heap.c
  priorityq.c
  render.c
  sweep.c
  tess.c
  tessellate.c
  tessmono.c
)

set(HEADERS
  dict.h
  dict-list.h
  geom.h
  gluos.h
  glutess.h
  memalloc.h
  mesh.h
  normal.h
  priorityq-heap.h
  priorityq-sort.h
  priorityq.h
  render.h
  sweep.h
  tess.h
  tessellate.h
  tessmono.h
)

add_library(glutess ${SOURCES} ${HEADERS})

... This came from ChatGPT based on a paste of your directory listing with 'dir' on windows. I said you put one .h in the sources and then it adjusted it once. It seems to work for me so I thought I would paste it here. It saved me from downloading scons anyway, lol. Thank you again for this tried and tested method.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant