Advertisement
Guest User

Untitled

a guest
Jul 6th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.50 KB | None | 0 0
  1. cmake_minimum_required(VERSION 3.0)
  2.  
  3. set(CMAKE_BUILD_TYPE Debug)
  4. set(CMAKE_CXX_FLAGS "-std=c++14")
  5. set(CPPFLAGS "${INC_FLAGS} -g -MMD -MP")
  6. set(CPPFLAGS "$(shell pkg-config --cflags freetype2)")
  7.  
  8. project(output)
  9. FILE(COPY res/ DESTINATION "${CMAKE_BINARY_DIR}/res/")
  10.  
  11. include_directories(
  12.     /usr/include/freetype2
  13. )
  14.  
  15. add_executable(
  16.     output
  17.     src/Main.cpp
  18.     src/core/IndexBuffer.cpp
  19.     src/core/Shader.cpp
  20.     src/core/VertexBuffer.cpp
  21. )
  22.  
  23. target_link_libraries(
  24.     output
  25.     GL
  26.     GLEW
  27.     glfw
  28. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement