2013-09-10 19:35:56 +00:00
|
|
|
# Minimum cmake version required
|
|
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
|
|
|
|
# Project configuration
|
|
|
|
PROJECT(CollisionShapes)
|
|
|
|
|
2013-09-15 21:32:42 +00:00
|
|
|
# Where to build the executable
|
|
|
|
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin/collisionshapes/)
|
|
|
|
|
2013-09-10 19:35:56 +00:00
|
|
|
# Copy the shaders used for the demo into the build directory
|
2013-09-15 21:32:42 +00:00
|
|
|
FILE(COPY "../common/opengl-framework/src/shaders/" DESTINATION "${EXECUTABLE_OUTPUT_PATH}/shaders/")
|
2013-09-10 19:35:56 +00:00
|
|
|
|
|
|
|
# Copy the meshes used for the demo into the build directory
|
2013-09-15 21:32:42 +00:00
|
|
|
FILE(COPY "../common/meshes/" DESTINATION "${EXECUTABLE_OUTPUT_PATH}/meshes/")
|
2013-09-10 19:35:56 +00:00
|
|
|
|
|
|
|
# Headers
|
|
|
|
INCLUDE_DIRECTORIES("../common/opengl-framework/src/" "../common/")
|
|
|
|
|
|
|
|
# Create the example executable using the
|
|
|
|
# compiled reactphysics3d static library
|
|
|
|
ADD_EXECUTABLE(collisionshapes CollisionShapes.cpp Scene.cpp Scene.h "../common/VisualContactPoint.cpp" "../common/ConvexMesh.cpp" "../common/Capsule.cpp" "../common/Sphere.cpp" "../common/Cylinder.cpp" "../common/Cone.cpp" "../common/Box.cpp" "../common/Viewer.cpp")
|
|
|
|
|
|
|
|
TARGET_LINK_LIBRARIES(collisionshapes reactphysics3d openglframework)
|