Open annidy opened 6 months ago
another OpenGL example
if (APPLE)
set(CMAKE_CXX_FLAGS "-framework Cocoa -framework IOKit -framework Foundation -framework OpenGL -framework CoreVideo")
# -framework OpenGL -framework CoreVideo
add_compile_definitions(GL_SILENCE_DEPRECATION)
add_compile_options(-Wno-unused-command-line-argument)
endif ()
Use framework in cmake
Sometime, you will get this in your cpp file
this is because cpp file can't include objc file, only .m/.mm support.