35 lines
973 B
CMake
35 lines
973 B
CMake
# Minimum cmake version required
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
# Project configuration
|
|
PROJECT(Joints)
|
|
|
|
# Where to build the executables
|
|
SET(EXECUTABLE_OUTPUT_PATH "${OUR_EXECUTABLE_OUTPUT_PATH}/joints")
|
|
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})
|
|
|
|
# Copy the shaders used for the demo into the build directory
|
|
FILE(COPY "${OPENGLFRAMEWORK_DIR}/src/shaders/" DESTINATION "${EXECUTABLE_OUTPUT_PATH}/shaders/")
|
|
|
|
# Headers
|
|
INCLUDE_DIRECTORIES("${OPENGLFRAMEWORK_DIR}/src/" "../common/")
|
|
|
|
# Source files
|
|
SET(JOINTS_SOURCES
|
|
Joints.cpp
|
|
Scene.cpp
|
|
Scene.h
|
|
"../common/Box.cpp"
|
|
"../common/Box.h"
|
|
"../common/Viewer.cpp"
|
|
"../common/Viewer.h"
|
|
)
|
|
|
|
# Create the executable
|
|
ADD_EXECUTABLE(joints ${JOINTS_SOURCES})
|
|
|
|
# Link with libraries
|
|
TARGET_LINK_LIBRARIES(joints reactphysics3d openglframework)
|