Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmake_minimum_required(VERSION 3.3)
- project(HelloWorld)
- find_package(OpenGL REQUIRED)
- find_package(GLEW REQUIRED)
- include_directories(GLFW/include)
- link_directories(GLFW/lib-mingw-w64)
- file(GLOB_RECURSE SOURCE_FILES "src/*.cpp" "src/*.h" "src/*.hpp")
- add_executable(HelloWorld ${SOURCE_FILES})
- target_link_libraries(HelloWorld ${OPENGL_LIBRARIES})
- target_link_libraries(HelloWorld GLEW)
- target_link_libraries(HelloWorld glfw3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement