cmake_minimum_required(VERSION 2.8)
project(triangle)

find_package(OpenGL REQUIRED)

add_subdirectory(glfw)
add_subdirectory(glxw)

include_directories(glxw/include)
include_directories(glfw/include)
include_directories(glm)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2 -Wall -Wextra -std=c++11")
SET(LIBRARIES glfw glxw ${GLFW_LIBRARIES} ${GLXW_LIBRARY} ${OPENGL_LIBRARY})

set(SOURCE_FILES main.cpp)
add_executable(triangle ${SOURCE_FILES})

target_link_libraries(triangle ${LIBRARIES})

cmake_minimum_required(VERSION 2.8)
project(triangle)

find_package(OpenGL REQUIRED)

add_subdirectory(glfw)
add_subdirectory(glxw)

include_directories(glxw/include)
include_directories(glfw/include)
include_directories(glm)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2 -Wall -Wextra -Werror -Wno-deprecated-register -Wno-shift-op-parentheses -std=c++11")
SET(LIBRARIES glfw glxw ${GLFW_LIBRARIES} ${GLXW_LIBRARY} ${OPENGL_LIBRARY})

set(SOURCE_FILES main.cpp)
add_executable(triangle ${SOURCE_FILES})

target_link_libraries(triangle ${LIBRARIES})

Return -Werror with some exceptions for GLM
Return -Werror with some exceptions for GLM
