# Minimum cmake version required cmake_minimum_required(VERSION 2.6) # Project configuration PROJECT(Cubes) # Where to build the executable SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin/cubes/) # 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(CUBES_SOURCES Cubes.cpp Scene.cpp Scene.cpp Scene.h "../common/Box.cpp" "../common/Box.h" "../common/Viewer.cpp" "../common/Viewer.h" ) # Create the executable ADD_EXECUTABLE(cubes ${CUBES_SOURCES}) # Link with libraries TARGET_LINK_LIBRARIES(cubes reactphysics3d openglframework)