Cloned library TetGen-1.5.1 with extra build files for internal package management.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
554 B

# Set the minimum required version of cmake for a project.
cmake_minimum_required(VERSION 2.8.12)
# Add an executable to the project using the specified source files.
add_executable(tetgen tetgen.cxx predicates.cxx)
#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)
#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)