# The name of our project is "GNURBS". CMakeLists files in this project can # refer to the root source directory of the project as ${HELLO_SOURCE_DIR} and # to the root binary directory of the project as ${HELLO_BINARY_DIR}. cmake_minimum_required (VERSION 3.10 FATAL_ERROR) if(DEFINED CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE} CACHE STRING "Choose build type") else(DEFINED CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "Choose build type") endif(DEFINED CMAKE_BUILD_TYPE) project(triangle C) set(TRIANGLE_SOURCE triangle.c ) #remove_definitions(-std=c++11) add_definitions(-DTRILIBRARY -DANSI_DECLARATORS -DLINUX) add_library(triangle SHARED ${TRIANGLE_SOURCE} )