Added missing display callback
Added compiler warnings for MSVC and GNU GCC
This commit is contained in:
parent
5e49d50c77
commit
a687887e5a
2 changed files with 8 additions and 1 deletions
|
@ -34,4 +34,10 @@ target_link_libraries(tests_opengl
|
|||
|
||||
target_include_directories(tests_opengl PRIVATE
|
||||
${OPENGL_INCLUDE_DIR}
|
||||
${GLUT_INCLUDE_DIR})
|
||||
${GLUT_INCLUDE_DIR})
|
||||
|
||||
if (CMAKE_COMPILER_IS_GNUCXX)
|
||||
target_compile_options(tests_opengl PRIVATE -Wall -Wpedantic -Wextra)
|
||||
elseif(MSVC)
|
||||
target_compile_options(tests_opengl PRIVATE /W4)
|
||||
endif()
|
Loading…
Add table
Add a link
Reference in a new issue