use opcode
This commit is contained in:
parent
8e4fd2976e
commit
ce81cbd9d8
2 changed files with 9 additions and 2 deletions
|
|
@ -8,13 +8,20 @@ CPMAddPackage(
|
|||
)
|
||||
|
||||
set(ODE_BASE "${ode_SOURCE_DIR}")
|
||||
set(ODE_TRIMESH "OPCODE")
|
||||
|
||||
if(ODE_TRIMESH STREQUAL "OPCODE")
|
||||
set(ODE_TRIMESH_SRC ${ODE_BASE}/OPCODE/*.cpp ${ODE_BASE}/Ice/*.cpp)
|
||||
else()
|
||||
set(ODE_TRIMESH_SRC ${ODE_BASE}/GIMPACT/src/*.cpp)
|
||||
endif()
|
||||
|
||||
file(GLOB ODE_SRC
|
||||
${ODE_BASE}/ode/src/*.c
|
||||
${ODE_BASE}/ode/src/*.cpp
|
||||
${ODE_BASE}/ode/src/joints/*.cpp
|
||||
${ODE_BASE}/ou/src/ou/*.cpp
|
||||
${ODE_BASE}/GIMPACT/src/*.cpp
|
||||
${ODE_TRIMESH_SRC}
|
||||
${ODE_BASE}/libccd/src/*.c
|
||||
)
|
||||
add_library(ode STATIC ${ODE_SRC})
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef _ODE_CONFIG_H_
|
||||
#define _ODE_CONFIG_H_
|
||||
#define dTRIMESH_ENABLED 1
|
||||
#define dTRIMESH_GIMPACT 1
|
||||
#define dTRIMESH_@ODE_TRIMESH@ 1
|
||||
#define dOU_ENABLED 1
|
||||
#define dATOMICS_ENABLED 0
|
||||
#define dTLS_ENABLED 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue