20 lines
366 B
CMake
20 lines
366 B
CMake
![]() |
cmake_minimum_required(VERSION 3.10)
|
||
|
|
||
|
file(GLOB_RECURSE CPP_FILES
|
||
|
"src/*.c"
|
||
|
)
|
||
|
|
||
|
file(GLOB_RECURSE HPP_FILES
|
||
|
"include/*.h"
|
||
|
)
|
||
|
|
||
|
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)
|