12 lines
366 B
CMake
12 lines
366 B
CMake
project(poly2tri-wrapper LANGUAGES CXX)
|
|
cmake_minimum_required(VERSION 3.12)
|
|
|
|
add_subdirectory(../../3rdparty/poly2tri poly2tri)
|
|
set(CMAKE_CXX_STANDARD 14)
|
|
|
|
aux_source_directory("src" WRAPPER_SOURCES)
|
|
|
|
add_library(${PROJECT_NAME} STATIC ${WRAPPER_SOURCES})
|
|
target_link_libraries(${PROJECT_NAME} poly2tri)
|
|
target_include_directories(${PROJECT_NAME} PUBLIC "include")
|