stuff-from-scratch/test/graphics/CMakeLists.txt

32 lines
585 B
CMake
Raw Normal View History

2022-11-30 18:28:50 +00:00
set(PLATFORM_UNIT_TEST_FILES)
set(OpenGL_GL_PREFERENCE "GLVND")
find_package(OpenGL QUIET)
if (OpenGL_FOUND)
set(PLATFORM_UNIT_TEST_FILES
graphics/TestOpenGlRendering.cpp
)
endif()
set(GRAPHICS_UNIT_TEST_FILES
graphics/TestRasterizer.cpp
${PLATFORM_UNIT_TEST_FILES}
PARENT_SCOPE
)
2023-01-05 13:16:52 +00:00
if(WIN32)
set(GRAPHICS_UI_TEST_FILES
graphics/TestDirectXRendering.cpp
PARENT_SCOPE
)
endif()
2022-11-30 18:28:50 +00:00
set(GRAPHICS_UNIT_TEST_DEPENDENCIES
graphics client
2023-01-05 13:16:52 +00:00
PARENT_SCOPE
)
set(GRAPHICS_UI_TEST_DEPENDENCIES
graphics client
PARENT_SCOPE
2022-11-30 18:28:50 +00:00
)