Advertisement
SirBaconBitz

Untitled

Dec 7th, 2018
646
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.44 KB | None | 0 0
  1. cmake_minimum_required(VERSION 3.3)
  2. project(HelloWorld)
  3.  
  4. find_package(OpenGL REQUIRED)
  5. find_package(GLEW REQUIRED)
  6.  
  7. include_directories(GLFW/include)
  8. link_directories(GLFW/lib-mingw-w64)
  9.  
  10. file(GLOB_RECURSE SOURCE_FILES "src/*.cpp" "src/*.h" "src/*.hpp")
  11.  
  12. add_executable(HelloWorld ${SOURCE_FILES})
  13.  
  14. target_link_libraries(HelloWorld ${OPENGL_LIBRARIES})
  15. target_link_libraries(HelloWorld GLEW)
  16. target_link_libraries(HelloWorld glfw3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement