2013-03-06 06:30:33 +00:00
|
|
|
# Minimum cmake version required
|
2020-05-11 10:38:59 +00:00
|
|
|
cmake_minimum_required(VERSION 3.8)
|
2013-03-06 06:30:33 +00:00
|
|
|
|
|
|
|
# Project configuration
|
2020-05-11 10:38:59 +00:00
|
|
|
project(TESTS)
|
2013-03-06 06:30:33 +00:00
|
|
|
|
2018-04-06 15:23:44 +00:00
|
|
|
# Header files
|
2020-05-11 10:38:59 +00:00
|
|
|
set (RP3D_TESTS_HEADERS
|
2018-04-06 15:23:44 +00:00
|
|
|
"Test.h"
|
|
|
|
"TestSuite.h"
|
|
|
|
"tests/collision/TestAABB.h"
|
|
|
|
"tests/collision/TestCollisionWorld.h"
|
|
|
|
"tests/collision/TestDynamicAABBTree.h"
|
|
|
|
"tests/collision/TestHalfEdgeStructure.h"
|
|
|
|
"tests/collision/TestPointInside.h"
|
|
|
|
"tests/collision/TestRaycast.h"
|
|
|
|
"tests/collision/TestTriangleVertexArray.h"
|
|
|
|
"tests/containers/TestList.h"
|
|
|
|
"tests/containers/TestMap.h"
|
|
|
|
"tests/containers/TestSet.h"
|
2019-03-30 23:48:05 +00:00
|
|
|
"tests/containers/TestStack.h"
|
2018-12-13 23:02:40 +00:00
|
|
|
"tests/containers/TestDeque.h"
|
2018-04-06 15:23:44 +00:00
|
|
|
"tests/mathematics/TestMathematicsFunctions.h"
|
|
|
|
"tests/mathematics/TestMatrix2x2.h"
|
|
|
|
"tests/mathematics/TestMatrix3x3.h"
|
|
|
|
"tests/mathematics/TestQuaternion.h"
|
|
|
|
"tests/mathematics/TestTransform.h"
|
|
|
|
"tests/mathematics/TestVector2.h"
|
|
|
|
"tests/mathematics/TestVector3.h"
|
|
|
|
)
|
2013-03-06 06:30:33 +00:00
|
|
|
|
2018-04-06 15:23:44 +00:00
|
|
|
# Source files
|
2020-05-11 10:38:59 +00:00
|
|
|
set (RP3D_TESTS_SOURCES
|
2018-04-06 15:23:44 +00:00
|
|
|
"main.cpp"
|
|
|
|
"Test.cpp"
|
|
|
|
"TestSuite.cpp"
|
2013-03-06 06:30:33 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
# Create the tests executable
|
2020-05-11 10:38:59 +00:00
|
|
|
add_executable(tests ${RP3D_TESTS_HEADERS} ${RP3D_TESTS_SOURCES})
|
2018-04-06 15:23:44 +00:00
|
|
|
|
|
|
|
# Headers
|
2020-05-11 10:38:59 +00:00
|
|
|
target_include_directories(reactphysics3d PUBLIC
|
2018-04-06 15:23:44 +00:00
|
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
|
|
|
)
|
2013-03-06 06:30:33 +00:00
|
|
|
|
2020-05-11 10:38:59 +00:00
|
|
|
target_link_libraries(tests reactphysics3d)
|
2015-07-12 10:11:20 +00:00
|
|
|
|
2020-05-11 10:38:59 +00:00
|
|
|
add_test(Test tests)
|