2012-07-31 21:48:35 +00:00
|
|
|
# Minimum cmake version required
|
|
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
|
|
|
|
# Project configuration
|
|
|
|
PROJECT(FallingCubes)
|
|
|
|
|
2013-04-14 19:32:40 +00:00
|
|
|
# Copy the shaders used for the demo into the build directory
|
|
|
|
FILE(COPY "../opengl-framework/src/shaders/" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/shaders/")
|
2012-07-31 21:48:35 +00:00
|
|
|
|
2013-03-17 15:45:48 +00:00
|
|
|
# Headers
|
2013-04-14 19:32:40 +00:00
|
|
|
INCLUDE_DIRECTORIES("../opengl-framework/src/")
|
2012-07-31 21:48:35 +00:00
|
|
|
|
|
|
|
# Create the example executable using the
|
|
|
|
# compiled reactphysics3d static library
|
2013-04-14 19:32:40 +00:00
|
|
|
ADD_EXECUTABLE(fallingcubes main.cpp Scene.cpp Scene.h Box.cpp Box.h)
|
2012-07-31 21:48:35 +00:00
|
|
|
|
2013-04-14 19:32:40 +00:00
|
|
|
TARGET_LINK_LIBRARIES(fallingcubes reactphysics3d openglframework)
|