2013-09-10 19:35:56 +00:00
|
|
|
# Minimum cmake version required
|
|
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
|
|
|
|
# Project configuration
|
|
|
|
PROJECT(CollisionShapes)
|
|
|
|
|
2013-10-06 14:03:25 +00:00
|
|
|
# Where to build the executables
|
|
|
|
SET(EXECUTABLE_OUTPUT_PATH "${OUR_EXECUTABLE_OUTPUT_PATH}/collisionshapes")
|
|
|
|
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
|
|
|
|
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${EXECUTABLE_OUTPUT_PATH})
|
|
|
|
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${EXECUTABLE_OUTPUT_PATH})
|
2013-09-15 21:32:42 +00:00
|
|
|
|
2013-09-10 19:35:56 +00:00
|
|
|
# Copy the shaders used for the demo into the build directory
|
2013-09-16 18:35:23 +00:00
|
|
|
FILE(COPY "${OPENGLFRAMEWORK_DIR}/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
|
2013-12-30 00:51:46 +00:00
|
|
|
INCLUDE_DIRECTORIES("${OPENGLFRAMEWORK_DIR}/src/" "../common/glfw/include/" "../common/")
|
2013-09-10 19:35:56 +00:00
|
|
|
|
2013-09-16 18:35:23 +00:00
|
|
|
# Source files
|
|
|
|
SET(COLLISION_SHAPES_SOURCES
|
|
|
|
CollisionShapes.cpp
|
|
|
|
Scene.cpp
|
|
|
|
Scene.h
|
|
|
|
"../common/VisualContactPoint.cpp"
|
|
|
|
"../common/ConvexMesh.cpp"
|
|
|
|
"../common/Capsule.cpp"
|
|
|
|
"../common/Sphere.cpp"
|
|
|
|
"../common/Cylinder.cpp"
|
|
|
|
"../common/Cone.cpp"
|
2014-06-10 20:46:32 +00:00
|
|
|
"../common/Dumbbell.cpp"
|
2013-09-16 18:35:23 +00:00
|
|
|
"../common/Box.cpp"
|
|
|
|
"../common/Viewer.cpp"
|
|
|
|
)
|
2013-09-10 19:35:56 +00:00
|
|
|
|
2013-09-16 18:35:23 +00:00
|
|
|
# Create the executable
|
|
|
|
ADD_EXECUTABLE(collisionshapes ${COLLISION_SHAPES_SOURCES})
|
|
|
|
|
|
|
|
# Link with libraries
|
2013-12-30 00:51:46 +00:00
|
|
|
TARGET_LINK_LIBRARIES(collisionshapes reactphysics3d openglframework glfw ${GLFW_LIBRARIES})
|