CMakeLists.txt 371 Bytes
Newer Older
1 2 3
set(piglit_target_api "gl")
add_definitions(
	-DUSE_OPENGL
4
	)
5 6 7 8 9 10 11 12 13 14 15 16 17

if(USE_WAFFLE)
	link_libraries(glut_waffle)
else(USE_WAFFLE)
	add_definitions(-DUSE_GLUT)
	include_directories(
		${GLUT_INCLUDE_DIR}
		)
	link_libraries(
		${GLUT_glut_LIBRARY}
		)
endif(USE_WAFFLE)

18 19 20
add_subdirectory(${piglit_SOURCE_DIR}/tests
	${piglit_BINARY_DIR}/target_api/${piglit_target_api}/tests
	)