Draft version 1.6.1 by Hang

This commit is contained in:
Your Name
2026-03-25 21:57:21 +08:00
parent be8813bec1
commit bd6e268ce9
5 changed files with 7023 additions and 1601 deletions

View File

@@ -1,14 +1,25 @@
# Set the minimum required version of cmake for a project.
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.6)
include_directories(./)
set(INC
tetgen.h
)
set(SRC
tetgen.cxx
predicates.cxx
)
# Add an executable to the project using the specified source files.
add_executable(tetgen tetgen.cxx predicates.cxx)
add_executable(tetgen ${INC} ${SRC})
#Add a library to the project using the specified source files.
# In Linux/Unix, it will creates the libtet.a
add_library(tet STATIC tetgen.cxx predicates.cxx)
#add_library(tet STATIC tetgen.cxx predicates.cxx)
#Set properties on a target.
#We use this here to set -DTETLIBRARY for when compiling the
#library
set_target_properties(tet PROPERTIES "COMPILE_DEFINITIONS" TETLIBRARY)
#set_target_properties(tet PROPERTIES "COMPILE_DEFINITIONS" TETLIBRARY)