Platformer in OpenGL
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

31 lines
716 B

# Projects Settings
cmake_minimum_required (VERSION 3.1)
project (opengl-skeleton)
# The main executable
add_executable(main
src/Application.cpp
src/Application.cpp
src/MyApplication.cpp
src/MyApplication.cpp
src/glError.hpp
src/glError.cpp
src/main.cpp
src/Shader.hpp
src/Shader.cpp
)
set_property(TARGET main PROPERTY CXX_STANDARD 11)
target_compile_options(main PRIVATE -Wall)
# glfw
add_subdirectory(lib/glfw EXCLUDE_FROM_ALL)
target_link_libraries(main PRIVATE glfw)
# glew
add_definitions(-DGLEW_STATIC)
add_subdirectory(lib/glew EXCLUDE_FROM_ALL)
target_link_libraries(main PRIVATE libglew_static)
# glm
add_subdirectory(lib/glm EXCLUDE_FROM_ALL)
target_link_libraries(main PRIVATE glm)