set(INCLUDE_DIR libtess2/Include)
set(SOURCE_DIR libtess2/Source)

add_definitions(-DNDEBUG=1) #this disables assert statements to prevent bad geometry from crashing the library

file(GLOB_RECURSE FOUND_SOURCES "${SOURCE_DIR}/*.c")

include_directories(${INCLUDE_DIR})
add_library(libtess2 ${FOUND_SOURCES})
Add a CMake build file for libtess2
Add a CMake build file for libtess2
