reactphysics3d/examples/cubes/CMakeLists.txt

18 lines
632 B
CMake
Raw Normal View History

2012-07-31 21:48:35 +00:00
# Minimum cmake version required
cmake_minimum_required(VERSION 2.6)
# Project configuration
2013-09-10 19:53:34 +00:00
PROJECT(Cubes)
2012-07-31 21:48:35 +00:00
# Copy the shaders used for the demo into the build directory
FILE(COPY "../common/opengl-framework/src/shaders/" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/shaders/")
2012-07-31 21:48:35 +00:00
# Headers
INCLUDE_DIRECTORIES("../common/opengl-framework/src/" "../common/")
2012-07-31 21:48:35 +00:00
# Create the example executable using the
# compiled reactphysics3d static library
2013-09-10 19:53:34 +00:00
ADD_EXECUTABLE(cubes Cubes.cpp Scene.cpp Scene.h "../common/Box.cpp" "../common/Box.h" "../common/Viewer.cpp" "../common/Viewer.h")
2012-07-31 21:48:35 +00:00
2013-09-10 19:53:34 +00:00
TARGET_LINK_LIBRARIES(cubes reactphysics3d openglframework)