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

преди 5 години
  1. # Projects Settings
  2. cmake_minimum_required (VERSION 3.1)
  3. project (opengl-skeleton)
  4. # The main executable
  5. add_executable(main
  6. src/Application.cpp
  7. src/Application.cpp
  8. src/MyApplication.cpp
  9. src/MyApplication.cpp
  10. src/glError.hpp
  11. src/glError.cpp
  12. src/main.cpp
  13. src/Shader.hpp
  14. src/Shader.cpp
  15. )
  16. set_property(TARGET main PROPERTY CXX_STANDARD 11)
  17. target_compile_options(main PRIVATE -Wall)
  18. # glfw
  19. add_subdirectory(lib/glfw EXCLUDE_FROM_ALL)
  20. target_link_libraries(main PRIVATE glfw)
  21. # glew
  22. add_definitions(-DGLEW_STATIC)
  23. add_subdirectory(lib/glew EXCLUDE_FROM_ALL)
  24. target_link_libraries(main PRIVATE libglew_static)
  25. # glm
  26. add_subdirectory(lib/glm EXCLUDE_FROM_ALL)
  27. target_link_libraries(main PRIVATE glm)