mirror of https://github.com/axmolengine/axmol.git
28 lines
507 B
CMake
28 lines
507 B
CMake
|
|
||
|
set(lib_name poly2tri)
|
||
|
set(target_name ${lib_name})
|
||
|
|
||
|
project(${lib_name})
|
||
|
|
||
|
set(${target_name}_src
|
||
|
common/shapes.cc
|
||
|
sweep/sweep.cc
|
||
|
sweep/sweep_context.cc
|
||
|
sweep/cdt.cc
|
||
|
sweep/advancing_front.cc
|
||
|
)
|
||
|
|
||
|
add_library(${target_name} STATIC
|
||
|
${${target_name}_src}
|
||
|
)
|
||
|
|
||
|
target_include_directories(${target_name} PUBLIC ..)
|
||
|
|
||
|
set_target_properties(${target_name}
|
||
|
PROPERTIES
|
||
|
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
||
|
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
||
|
FOLDER "External"
|
||
|
)
|
||
|
|