2013-04-25 22:46:09 +00:00
|
|
|
# Minimum cmake version required
|
|
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
|
|
|
|
# Project configuration
|
|
|
|
PROJECT(Joints)
|
|
|
|
|
2013-09-15 21:32:42 +00:00
|
|
|
# Where to build the executable
|
|
|
|
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin/joints/)
|
|
|
|
|
2013-04-25 22:46:09 +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-04-25 22:46:09 +00:00
|
|
|
|
|
|
|
# Headers
|
2013-09-16 18:35:23 +00:00
|
|
|
INCLUDE_DIRECTORIES("${OPENGLFRAMEWORK_DIR}/src/" "../common/")
|
2013-04-25 22:46:09 +00:00
|
|
|
|
2013-09-16 18:35:23 +00:00
|
|
|
# Source files
|
|
|
|
SET(JOINTS_SOURCES
|
|
|
|
Joints.cpp
|
|
|
|
Scene.cpp
|
|
|
|
Scene.h
|
|
|
|
"../common/Box.cpp"
|
|
|
|
"../common/Box.h"
|
|
|
|
"../common/Viewer.cpp"
|
|
|
|
"../common/Viewer.h"
|
|
|
|
)
|
2013-04-25 22:46:09 +00:00
|
|
|
|
2013-09-16 18:35:23 +00:00
|
|
|
# Create the executable
|
|
|
|
ADD_EXECUTABLE(joints ${JOINTS_SOURCES})
|
|
|
|
|
|
|
|
# Link with libraries
|
2013-04-25 22:46:09 +00:00
|
|
|
TARGET_LINK_LIBRARIES(joints reactphysics3d openglframework)
|