better project structure
This commit is contained in:
parent
274b3d03b4
commit
98489ed45d
14 changed files with 8051 additions and 36 deletions
22
vendor/triangle/CMakeLists.txt
vendored
Normal file
22
vendor/triangle/CMakeLists.txt
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
cmake_minimum_required(VERSION 3.10)
|
||||
|
||||
file(GLOB_RECURSE CPP_FILES
|
||||
"src/*.c"
|
||||
)
|
||||
|
||||
file(GLOB_RECURSE HPP_FILES
|
||||
"include/*.h"
|
||||
)
|
||||
|
||||
SET_SOURCE_FILES_PROPERTIES( ${CPP_FILES} PROPERTIES LANGUAGE CXX )
|
||||
|
||||
add_library(triangle STATIC
|
||||
${CPP_FILES} ${HPP_FILES}
|
||||
)
|
||||
|
||||
target_include_directories(triangle PUBLIC
|
||||
include
|
||||
${TINYXML2_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
target_compile_definitions(triangle PUBLIC NO_TIMER TRILIBRARY REDUCED DCT_ONLY ANSI_DECLARATORS)
|
Loading…
Add table
Add a link
Reference in a new issue