summaryrefslogtreecommitdiff
path: root/examples/CMakeLists.txt
blob: 95b06ca1a944bbcab7bf20fb4fe3087b5cb2174b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44

include_directories (BEFORE ${GD_SOURCE_DIR}/src "${CMAKE_BINARY_DIR}")


SET(TESTS_FILES
  tiffread
#  resize
  copyrotated
#  ellipseaa
#  ellipse
  arc
#  ellipsearc
  flip
  crop
#  ellfullaa
  tgaread
  nnquant
  gif
)

if (JPEG_FOUND)
	SET(TESTS_FILES
		"${TESTS_FILES}"
		nnquant
	)
endif (JPEG_FOUND)


if (TIFF_FOUND)
	SET(TESTS_FILES
		"${TESTS_FILES}"
		tiffread
	)
endif (TIFF_FOUND)

FOREACH(test_name ${TESTS_FILES})
	add_executable(${test_name} "${test_name}.c")
	target_link_libraries (${test_name} ${GD_LIB})
ENDFOREACH(test_name)

if (WIN32)
	add_executable(windows WIN32 "windows.c")
	target_link_libraries (${test_name} ${GD_LIB})
endif (WIN32)