Source

gd-libgd / tests / CMakeLists.txt

Full commit
pajoye 9bf4f83 







pajoye cff126c 



pajoye 06c8718 
pajoye 9bf4f83 



tabe c09bda5 
pajoye 09746d3 
pajoye 9bf4f83 

tabe e27c3c7 

tabe 12a93b9 
pajoye 9bf4f83 

tabe 12a93b9 
pajoye 9bf4f83 
tabe fc32e57 
pajoye 9bf4f83 

tabe 12a93b9 


pajoye 9bf4f83 
tabe 5876dc8 
tabe 12a93b9 


tabe 5876dc8 
tabe 12a93b9 
tabe 5876dc8 
pajoye 9bf4f83 
Pierre Joye 969ec17 
tabe 9563181 
tabe 79f661f 
tabe e27c3c7 
tabe 12a93b9 
pajoye 9bf4f83 
tabe e27c3c7 

pajoye 9bf4f83 

Takeshi Abe 8619ed7 



















pajoye 9bf4f83 


pajoye b406d91 
pajoye 9bf4f83 

if (BUILD_TEST)
	SET(DART_TESTING_TIMEOUT 5)

	INCLUDE(Dart)

	set(GDTEST_SOURCE_DIR ${GD_SOURCE_DIR}/tests/gdtest)

	IF (ENABLE_GCOV AND CMAKE_COMPILER_IS_GNUCC)
		SET(CMAKE_BUILD_TYPE TESTINGGCOV)
		SET(CMAKE_CXX_FLAGS_TESTINGGCOV "-g3 -O0")
		SET(CMAKE_C_FLAGS_TESTINGGCOV "-g3 -O0")
	endif (ENABLE_GCOV AND CMAKE_COMPILER_IS_GNUCC)

	message(STATUS "gd include dir: ${GD_INCLUDE_DIR}" )
	message(STATUS "gd libs dir: ${GD_LIBS_DIR}" )

	include_directories (BEFORE ${GD_INCLUDE_DIR} "${GDTEST_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" "${CMAKE_BINARY_DIR}/tests/gdtest")

	SET(TESTS_DIRS
		gdtest
		bmp
		gd
		gd2
		gdimagearc
		gdimagecolorclosest
		gdimagecolordeallocate
		gdimagecolorexact
		gdimagecolorreplace
		gdimagecolorresolve
		gdimagecolortransparent
		gdimagecopy
		gdimagecopyrotated
		gdimagefill
		gdimagefilledellipse
		gdimagefilledpolygon
		gdimagefilledrectangle
		gdimagefilltoborder
		gdimageline
		gdimageopenpolygon
		gdimagepixelate
		gdimagepolygon
		gdimagerectangle
		gdimagerotate
		gdimagescatterex
		gdimagesetpixel
		gdnewfilectx
		gdtiled
		gif
		tga
		wbmp
	)

	IF(FREETYPE_FOUND)
		LIST(APPEND TESTS_DIRS freetype gdimagestringft gdimagestringftex)
	ENDIF(FREETYPE_FOUND)

	IF(JPEG_FOUND)
		LIST(APPEND TESTS_DIRS jpeg)
	ENDIF(JPEG_FOUND)

	IF(PNG_FOUND)
		LIST(APPEND TESTS_DIRS png)
	ENDIF(PNG_FOUND)

	IF(TIFF_FOUND)
		LIST(APPEND TESTS_DIRS tiff)
	ENDIF(TIFF_FOUND)

	IF(XPM_FOUND)
		LIST(APPEND TESTS_DIRS xpm)
	ENDIF(XPM_FOUND)

	FOREACH(test_dir ${TESTS_DIRS})
		add_subdirectory (${test_dir})
	ENDFOREACH(test_dir)

endif (BUILD_TEST)