File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ if(WINDOWS)
1313 add_definitions (-Dmain=SDL_main)
1414endif ()
1515
16+ find_package (OpenGL)
17+
18+ if (OPENGL_FOUND)
19+ add_definitions (-DHAVE_OPENGL)
20+ endif ()
21+
1622add_executable (checkkeys checkkeys.c)
1723add_executable (loopwave loopwave.c)
1824add_executable (loopwavequeue loopwavequeue.c)
@@ -88,6 +94,13 @@ add_executable(controllermap controllermap.c)
8894add_executable (testvulkan testvulkan.c)
8995add_executable (testoffscreen testoffscreen.c)
9096
97+ if (OPENGL_FOUND)
98+ add_dependencies (testshader OpenGL::GL)
99+ add_dependencies (testgl2 OpenGL::GL)
100+ target_link_libraries (testshader OpenGL::GL)
101+ target_link_libraries (testgl2 OpenGL::GL)
102+ endif ()
103+
91104# HACK: Dummy target to cause the resource files to be copied to the build directory.
92105# Need to make it an executable so we can use the TARGET_FILE_DIR generator expression.
93106# This is needed so they get copied to the correct Debug/Release subdirectory in Xcode.
You can’t perform that action at this time.
0 commit comments